issue203:inkscape
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
issue203:inkscape [2024/04/02 08:04] – d52fr | issue203:inkscape [2024/04/03 17:18] (Version actuelle) – andre_domenech | ||
---|---|---|---|
Ligne 4: | Ligne 4: | ||
At the top of the dialog is a thumbnail of the image, together with its dimensions and a label to indicate whether it’s linked or embedded. In the latter case, the label also shows the amount of space the image data takes up, to give you an idea of how much it will bloat your SVG file size. The text beneath the thumbnail shows the image’s ID, prefixed by a hash character. This is a little misleading, as the default for showing the ID in the Object Properties dialog is to not include a hash, whereas the placeholder text for the ‘Label’ field does include it.** | At the top of the dialog is a thumbnail of the image, together with its dimensions and a label to indicate whether it’s linked or embedded. In the latter case, the label also shows the amount of space the image data takes up, to give you an idea of how much it will bloat your SVG file size. The text beneath the thumbnail shows the image’s ID, prefixed by a hash character. This is a little misleading, as the default for showing the ID in the Object Properties dialog is to not include a hash, whereas the placeholder text for the ‘Label’ field does include it.** | ||
+ | |||
+ | Ce mois-ci, je vais me pencher sur une autre boîte de dialogue qui a été mise à jour dans Inkscape 1.3 : la boîte de dialogue Attributs de l' | ||
+ | |||
+ | Le contenu de cette boîte de dialogue change en fonction de l' | ||
+ | |||
+ | En haut de la boîte de dialogue se trouve une vignette de l' | ||
+ | |||
**Even if you set a label via this field in the Object Properties dialog, it is not displayed in the Object Attributes dialog. I guess the Inkscape developers must have their own idea of what’s a property and what’s an attribute, and only the ID counts as the latter. | **Even if you set a label via this field in the Object Properties dialog, it is not displayed in the Object Attributes dialog. I guess the Inkscape developers must have their own idea of what’s a property and what’s an attribute, and only the ID counts as the latter. | ||
- | Moving on down the dialog, the URL field shows the path to the linked image. For an embedded image, this field is disabled. Although the field is editable for a linked image, changes made here are not reflected in the stored data for the image in the SVG file. If, as I do, you keep your linked bitmaps in the same folder as their SVG file, you can sometimes find that moving or copying SVGs results in them being linked to the wrong place, via an absolute path. In older versions it was possible to directly edit the link via this dialog, replacing the absolute path with a local filename. Not any more. | + | Moving on down the dialog, the URL field shows the path to the linked image. For an embedded image, this field is disabled. Although the field is editable for a linked image, changes made here are not reflected in the stored data for the image in the SVG file. If, as I do, you keep your linked bitmaps in the same folder as their SVG file, you can sometimes find that moving or copying SVGs results in them being linked to the wrong place, via an absolute path. In older versions it was possible to directly edit the link via this dialog, replacing the absolute path with a local filename. Not any more.** |
- | < | + | Même si vous définissez une étiquette via ce champ dans la boîte de dialogue Propriétés de l' |
- | </ | + | Dans la suite de la boîte de dialogue, le champ URL indique le chemin d' |
- | A welcome addition is the pair of radio buttons to select between preserving the aspect ratio of the image, or stretching it out of proportion if necessary. I’d like to see buttons to revert to the original dimensions, or to keep the width or height fixed while changing the other dimension to suit the original proportions. Being able to preserve the aspect ratio allows you to address most of the issues for which such buttons would be of benefit, though, turning these tasks from ‘almost impossible’ to just ‘a bit tricky’. Finally, a popup lets you select between different rendering hints. This is the same as the ‘Image Rendering’ popup you can see in the Object Properties dialog. Note that selecting any of the options in this menu really is just a hint; whether or not they’re honored will depend on the software being used to display or print the SVG. | ||
- | But what if you want to view the Object Attributes dialog for something other than an image? Common sense would say that you just right-click on the object and select | + | **Instead |
- | **One way to get to it is to use the Image Properties menu option on a raster image, then select the object you’re actually interested in. The dialog will change dynamically as objects are selected, so will update to reflect the non-image item you’ve chosen. But that’s hardly an effective way to get to this dialog, and your drawing might not even contain any bitmaps that you can right-click on. | ||
- | Instead, the official way to open this dialog is to either bind it to a keyboard shortcut via Preferences dialog (in the Interface | + | Au lieu de cela, vous devez utiliser le bouton situé à droite du champ URL, qui vous permet de sélectionner une image différente pour remplacer celle qui est liée ou incorporée. <nowiki>Même en utilisant ce bouton pour sélectionner un fichier dans le même répertoire que le SVG, on obtient une URL absolue « file://... » plutôt qu'un simple nom de fichier.</ |
- | When you open a dialog – any dialog – within Inkscape, there is an icon at the right of the tab bar (circled top right). This is present whether the dialog is opened in a window, or docked to Inkscape’s main window. With the theme I use, this icon appears as a light grey down-facing arrow which is very easy to miss. Here it is at the top-right of the Fill & Stroke dialog on my machine, circled in red because it really is so easy to miss.** | ||
- | **Clicking | + | **The buttons below the URL field allow you to convert a linked image to an embedded one, or to export a copy of the image – regardless of whether it’s linked or embedded – to a new location. One use of this might be to save a copy of an embedded file, then use the folder |
- | In my defence, I was vaguely aware of this menu, but it’s not one I ever use. The top few entries are useful | + | A welcome addition is the pair of radio buttons to select between preserving the aspect ratio of the image, or stretching |
- | Towards the bottom of the dialog, in the ‘Settings’ section, you can find the entry for Object Attributes. If you don’t have a bitmap image in your document, and haven’t bound a separate keyboard shortcut, this seems to be the only way to access it. To summarise, the steps required are: | + | Les boutons situés sous le champ URL vous permettent de convertir une image liée en une image incorporée ou d' |
+ | |||
+ | La paire de boutons radio permettant de choisir entre le maintien du rapport hauteur/ | ||
+ | |||
+ | |||
+ | **But what if you want to view the Object Attributes dialog for something other than an image? Common sense would say that you just right-click on the object and select it from the context menu? Or choose it from the main ‘Object’ menu, right? Common sense, it would seem, is a little short among the Inkscape UX team in this case, as neither of these menus contain an entry for this dialog. | ||
+ | |||
+ | One way to get to it is to use the Image Properties menu option on a raster image, then select the object you’re actually interested in. The dialog will change dynamically as objects are selected, so will update to reflect the non-image item you’ve chosen. But that’s hardly an effective way to get to this dialog, and your drawing might not even contain any bitmaps that you can right-click on. | ||
+ | |||
+ | Instead, the official way to open this dialog is to either bind it to a keyboard shortcut via Preferences dialog (in the Interface > Keyboard pane), or access it via the ‘dialog popup menu’. The what now? If you’ve no idea what I’m talking about, you’re not alone – I also had to go hunting to find this menu, as it wasn’t a term I was familiar with.** | ||
+ | |||
+ | Mais que se passe-t-il si vous souhaitez afficher la boîte de dialogue Attributs de l' | ||
+ | |||
+ | Une façon d'y accéder est d' | ||
+ | |||
+ | La façon officielle d' | ||
+ | |||
+ | **When you open a dialog – any dialog – within Inkscape, there is an icon at the right of the tab bar (circled top right). This is present whether the dialog is opened in a window, or docked to Inkscape’s main window. With the theme I use, this icon appears as a light grey down-facing arrow which is very easy to miss. Here it is at the top-right of the Fill & Stroke dialog on my machine, circled in red because it really is so easy to miss. | ||
+ | |||
+ | Clicking this icon opens the ‘dialog popup menu’ (right). | ||
+ | |||
+ | In my defence, I was vaguely aware of this menu, but it’s not one I ever use. The top few entries are useful if you’re managing multiple dialogs in a tabbed interface which is probably docked to the main window. That’s not the way I work. The remaining entries open various dialogs, but I always open my dialogs via toolbar buttons, menus, and context menus. Never by clicking on a faint icon in some completely different dialog, then selecting the thing I really wanted via this menu.** | ||
+ | |||
+ | Lorsque vous ouvrez un dialogue - n' | ||
+ | |||
+ | En cliquant sur cette icône, on ouvre le « menu contextuel de la boîte de dialogue » (à droite). | ||
+ | |||
+ | Pour ma défense, je connaissais vaguement l' | ||
+ | |||
+ | |||
+ | **Towards the bottom of the dialog, in the ‘Settings’ section, you can find the entry for Object Attributes. If you don’t have a bitmap image in your document, and haven’t bound a separate keyboard shortcut, this seems to be the only way to access it. To summarise, the steps required are: | ||
• Open a dialog. Any one will do, so feel free to use the “Layers and Objects”, “Fill and Stroke”, or “Align and Distribute” dialogs if they’re already open. If you don’t have a dialog open, right-clicking on an object and choosing “Document Properties” feels to me like a route that won’t break the mental context of what you’re trying to do. | • Open a dialog. Any one will do, so feel free to use the “Layers and Objects”, “Fill and Stroke”, or “Align and Distribute” dialogs if they’re already open. If you don’t have a dialog open, right-clicking on an object and choosing “Document Properties” feels to me like a route that won’t break the mental context of what you’re trying to do. | ||
• Click on the icon at the right of the tab bar in your selected dialog. | • Click on the icon at the right of the tab bar in your selected dialog. | ||
Ligne 33: | Ligne 67: | ||
• Click on “Object Attributes” in the Settings section of the menu. | • Click on “Object Attributes” in the Settings section of the menu. | ||
• On the canvas, select the object whose attributes you wish to view or edit. | • On the canvas, select the object whose attributes you wish to view or edit. | ||
- | • Optionally close the other dialog if you no longer require it.** | + | • Optionally close the other dialog if you no longer require it. |
- | **With nothing selected, the dialog is empty, and with multiple objects selected, it simply shows the text “Multiple objects selected”. When an individual object is selected, however, the display will change depending on the type of object. We’ve already seen how it looks when a bitmap image is chosen, but here are the other possibilities: | + | With nothing selected, the dialog is empty, and with multiple objects selected, it simply shows the text “Multiple objects selected”. When an individual object is selected, however, the display will change depending on the type of object. We’ve already seen how it looks when a bitmap image is chosen, but here are the other possibilities: |
- | Essentially these replicate the controls in the relevant tool control bar for each type of object, but there are some interesting additions and differences. First is that the object’s fill and stroke colors, and stroke width, are indicated at the top-right of each view. None of the other stroke properties are reflected here, and unlike the corresponding swatches and numbers in the status bar, you can’t change the values in any way from here. Disappointingly, | + | Vers le bas de la boîte de dialogue, dans la section « Paramètres », vous trouverez l' |
+ | ••Ouvrez une boîte de dialogue. N' | ||
+ | ••Cliquez sur l' | ||
+ | |||
+ | ••Cliquez sur « Attributs de l' | ||
+ | ••Sur le canevas, sélectionnez l' | ||
+ | ••Fermez éventuellement l' | ||
+ | |||
+ | Si aucun objet n'est sélectionné, | ||
+ | |||
+ | |||
+ | **Essentially these replicate the controls in the relevant tool control bar for each type of object, but there are some interesting additions and differences. First is that the object’s fill and stroke colors, and stroke width, are indicated at the top-right of each view. None of the other stroke properties are reflected here, and unlike the corresponding swatches and numbers in the status bar, you can’t change the values in any way from here. Disappointingly, | ||
The top row of fields for Rectangles and Ellipses has a small icon to the right. Clicking this will round the values in those fields to the nearest integer, which is a potentially handy feature that would be nice to have in the main tool control bar fields. Conversely, the quick shortcut values that are present on the context menus for these fields in the tool control bar are not included within this dialog. That limitation applies to all the fields, regardless of the selected object.** | The top row of fields for Rectangles and Ellipses has a small icon to the right. Clicking this will round the values in those fields to the nearest integer, which is a potentially handy feature that would be nice to have in the main tool control bar fields. Conversely, the quick shortcut values that are present on the context menus for these fields in the tool control bar are not included within this dialog. That limitation applies to all the fields, regardless of the selected object.** | ||
+ | |||
+ | Pour l' | ||
+ | |||
+ | La rangée supérieure des champs Rectangles et Ellipses comporte une petite icône à droite. En cliquant sur cette icône, les valeurs de ces champs sont arrondies à l' | ||
**The Rectangle pane has a couple of buttons at the bottom. The first sets the corner radius values to zero (i.e. 90° corners) as it does in the tool control bar. But the second button is another useful one which is missing from the tool control bar: it adds the ‘Corners’ live path effect, allowing each of the four corner radii to be modified independently. The Object Attributes dialog does not actually show the individual values, however – this button is more of a quick way to add the LPE so you can tweak the values on-canvas, but you’ll still need to open the LPE dialog for fine control and editing. | **The Rectangle pane has a couple of buttons at the bottom. The first sets the corner radius values to zero (i.e. 90° corners) as it does in the tool control bar. But the second button is another useful one which is missing from the tool control bar: it adds the ‘Corners’ live path effect, allowing each of the four corner radii to be modified independently. The Object Attributes dialog does not actually show the individual values, however – this button is more of a quick way to add the LPE so you can tweak the values on-canvas, but you’ll still need to open the LPE dialog for fine control and editing. | ||
The Star pane also has a couple of extra touches compared to the regular tool control bar. The first is the third button in the ‘Shape’ row – whose drab icon in this theme makes it appear disabled, even though it isn’t. The tooltip in this button says ‘Level shape’, which in this case means that it will be rotated such that the first spoke runs vertically. Inkscape veterans already know to hold the CTRL key and drag upwards when using the Star tool to achieve this type of alignment, but if you’re not aware of that trick, or you simply forget to do it on a particular object, reorienting a star or regular polygon to make it neatly aligned can be a surprisingly tricky task. This button achieves it with one click, and makes me wonder why this isn’t also on the tool control bar.** | The Star pane also has a couple of extra touches compared to the regular tool control bar. The first is the third button in the ‘Shape’ row – whose drab icon in this theme makes it appear disabled, even though it isn’t. The tooltip in this button says ‘Level shape’, which in this case means that it will be rotated such that the first spoke runs vertically. Inkscape veterans already know to hold the CTRL key and drag upwards when using the Star tool to achieve this type of alignment, but if you’re not aware of that trick, or you simply forget to do it on a particular object, reorienting a star or regular polygon to make it neatly aligned can be a surprisingly tricky task. This button achieves it with one click, and makes me wonder why this isn’t also on the tool control bar.** | ||
+ | |||
+ | Le volet Rectangle comporte deux boutons en bas. Le premier définit les valeurs de rayon d' | ||
+ | |||
+ | Le volet Étoile présente également quelques touches supplémentaires par rapport à la barre de contrôle des outils classiques. Le premier est le troisième bouton de la rangée « Forme », dont l' | ||
+ | |||
**The other feature is less impressive, but a nice touch nevertheless: | **The other feature is less impressive, but a nice touch nevertheless: | ||
Ligne 50: | Ligne 104: | ||
In summary, this dialog is a potentially useful tool which even offers a few capabilities that can’t be found anywhere else in Inkscape. That makes it all the more disappointing that it’s hidden away in an obscure popup menu, rather than appearing in the context menu. This is doubly baffling when you consider that it does appear there – albeit with a historic title – if the selected object happens to be a bitmap image. I’m not sure I’ll use this dialog enough to warrant creating a keybinding for it, but now that I know it exists I’ve little doubt that I’ll have cause to open it from time to time. To be honest, that will mostly be when I forgot to hold CTRL while creating a star.** | In summary, this dialog is a potentially useful tool which even offers a few capabilities that can’t be found anywhere else in Inkscape. That makes it all the more disappointing that it’s hidden away in an obscure popup menu, rather than appearing in the context menu. This is doubly baffling when you consider that it does appear there – albeit with a historic title – if the selected object happens to be a bitmap image. I’m not sure I’ll use this dialog enough to warrant creating a keybinding for it, but now that I know it exists I’ve little doubt that I’ll have cause to open it from time to time. To be honest, that will mostly be when I forgot to hold CTRL while creating a star.** | ||
+ | |||
+ | L' | ||
+ | |||
+ | Sur cette image, les volets Attributs de l' | ||
+ | |||
+ | En résumé, cette boîte de dialogue est un outil potentiellement utile qui offre même quelques possibilités que l'on ne trouve nulle part ailleurs dans Inkscape. Il est donc d' | ||
issue203/inkscape.1712037879.txt.gz · Dernière modification : 2024/04/02 08:04 de d52fr