diff options
| author | Mikko Syrjä <mikko@syrja.org> | 2019-07-25 00:38:16 +0300 |
|---|---|---|
| committer | Mikko Syrjä <mikko@syrja.org> | 2019-07-25 00:38:16 +0300 |
| commit | 7202148aeeaac7e5ed0dce3bfc501b5200314757 (patch) | |
| tree | c6434bb6a4e97668c21ee5e41ffee4946ddcbfc6 /help | |
| parent | 6cbf0f778c804e643592d306e3e2c93a3a82904e (diff) | |
| download | symedit-7202148aeeaac7e5ed0dce3bfc501b5200314757.tar.gz symedit-7202148aeeaac7e5ed0dce3bfc501b5200314757.zip | |
Implemented rotated text editing.
Diffstat (limited to 'help')
| -rw-r--r-- | help/eng/format.rst | 25 | ||||
| -rw-r--r-- | help/eng/tools.rst | 15 | ||||
| -rw-r--r-- | help/eng/usage.rst | 9 | ||||
| -rw-r--r-- | help/fin/format.rst | 29 | ||||
| -rw-r--r-- | help/fin/tools.rst | 17 | ||||
| -rw-r--r-- | help/fin/usage.rst | 8 |
6 files changed, 76 insertions, 27 deletions
diff --git a/help/eng/format.rst b/help/eng/format.rst index 86dfd68..8e43a66 100644 --- a/help/eng/format.rst +++ b/help/eng/format.rst @@ -3,12 +3,16 @@ Symbol format ============= -xxx +Format contains drawing commands separated by semicolons. Symbol coordinate area is 100x100 and origin is at center. Coordinate X component is horizontal from left to right and Y component is vertical from bottom to top. Angle zero direction points to right and rotation is counter-clockwise. + +For example, application crosshair logo can be defined like this: + +``R50;U-50,0;D50,0;U0,50;D0,-50`` Commands -------- -Commands are separated by semicolons. Coordinate X is horizontal component from left to right and Y is vertical component from bottom to top. +Following drawing commads are available. **U** - Change position ^^^^^^^^^^^^^^^^^^^^^^^ @@ -41,7 +45,7 @@ Parameters: X,Y (``B40,40``) **C** - Set color index ^^^^^^^^^^^^^^^^^^^^^^^ -Sets parameter to current drawing color index. +Sets parameter to current drawing color index. Affects until changed. Parameters: I (``C3``) @@ -54,7 +58,20 @@ Sets area fill type index to one of the following values: 1. Area fill using background color 2. Area fill using current color -Fill type works with rectangle and circle commands. Border is drawn only when the fill type is zero. +Fill type works with rectangle and circle commands. Border is drawn only when the fill type is zero. Affects until changed. Parameters: I (``F2``) +**G** - Set text angle +^^^^^^^^^^^^^^^^^^^^^^ + +Sets parameter to text angle as gons. Horizontal text angle is zero and rotation is counter-clockwise. Affects until changed. + +Parameters: I (``G50``) + +**J** - Set text alignment +^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Sets parameter to text alignment (1-12). Default is 9 (bottom left corner). Affects until changed. + +Parameters: I (``J9``) diff --git a/help/eng/tools.rst b/help/eng/tools.rst index 8274414..64ec2c3 100644 --- a/help/eng/tools.rst +++ b/help/eng/tools.rst @@ -78,13 +78,20 @@ Draws circle with center and radius. .. xxx Draws quarter circle with center and radius. -.. |text image| image:: ../../image/text.png +.. |text horizontal image| image:: ../../image/text_horizontal.png + :scale: 50 % +.. |text rotated image| image:: ../../image/text_rotated.png :scale: 50 % -|text image| Text -^^^^^^^^^^^^^^^^^ +|text horizontal image| Horizontal text +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Draws horizontal text to given position. + +|text rotated image| Rotated text +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Draws text to given position. +Draws text to given position using other point as direction. Settings -------- diff --git a/help/eng/usage.rst b/help/eng/usage.rst index 196394f..92e7073 100644 --- a/help/eng/usage.rst +++ b/help/eng/usage.rst @@ -1,7 +1,7 @@ Application usage ================= -xxx +Application can be used directly for editing single symbol defintion files or it can be called from other programs and controlled by command line parameters. Command line ------------ @@ -31,12 +31,12 @@ Displays command line help. file ^^^^ -Symbol file name. Symbol file is simple text file containing symbol definition. +Symbol file name. Symbol file is simple text file containing single symbol definition. See :ref:`symbol-format-label`. User interface -------------- -xxx +User interface is traditional desktop interface. All tools are available as menu commands and important ones also as toolbar buttons. Menu ^^^^ @@ -54,7 +54,8 @@ See :doc:`tools`. Editor ^^^^^^ -xxx +Editing works by selecting first drawing tool from the menu or toolbar. Pressing the mouse button starts new element adding and releasing the button saves it. Already created elements cannot be modified. They must first be deleted and then redrawed. + Statusbar ^^^^^^^^^ diff --git a/help/fin/format.rst b/help/fin/format.rst index cf9bd3d..37b6f64 100644 --- a/help/fin/format.rst +++ b/help/fin/format.rst @@ -3,12 +3,16 @@ Symbolin formaatti ================== -xxx +Formaatti koostuu puolipisteellä erotetuista piirtokomennoista. Symbolin koordinaattialue on kooltaan 100x100 ja origo on keskellä. Koordinaatiston X on vaakasuora komponentti vasemmalta oikealle ja Y on pystysuora komponentti alhaalta ylös. Kulmien nollasuunta on oikealle ja kiertosuunta vastapäivään. + +Esimerkiksi ohjelman logona oleva hiusristikko määritellään seuraavasti: + +``R50;U-50,0;D50,0;U0,50;D0,-50`` Komennot -------- -Komennot erotetaan toisistaan puolipisteillä. Koordinaatiston X on vaakasuora komponentti vasemmalta oikealle ja Y on pystysuora komponentti alhaalta ylös. +Käytettävissä ovat seuraavat piirtokomennot. **U** - Muuta sijaintia ^^^^^^^^^^^^^^^^^^^^^^^ @@ -41,9 +45,9 @@ Parametrit: X,Y (``B40,40``) **C** - Aseta väri-indeksi ^^^^^^^^^^^^^^^^^^^^^^^^^^ -Asettaa parametrin piirron väri-ideksiksi. +Asettaa parametrin piirron väri-ideksiksi. Voimassa kunnes muutetaan. -Parameters: I (``C3``) +Parametrit: I (``C3``) **F** - Aseta alueen täyttö ^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -54,7 +58,20 @@ Asettaa alueen täytöksi jonkin seuraavan tyypin: 1. Alueen täyttö taustavärillä 2. Alueen täyttö nykyisellä värillä -Alueen täyttö toimii suorakaiteen ja ympyrän kanssa. Reunaviiva piirretään vain, jos täyttö on nolla. +Alueen täyttö toimii suorakaiteen ja ympyrän kanssa. Reunaviiva piirretään vain, jos täyttö on nolla. Voimassa kunnes muutetaan. + +Parametrit: I (``F2``) + +**G** - Aseta tekstin kulma +^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Asettaa parametrin tekstin kulmaksi gooneina. Vaakasuoran tekstin kulma on nolla ja kiertosuunta on vastapäivään. Voimassa kunnes muutetaan. + +Parametrit: I (``G50``) + +**J** - Aseta tekstin asemointi +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Parameters: I (``F2``) +Asettaa parametrin tekstin asemoinniksi (1-12). Oletus on 9 (vasen alakulma). Voimassa kunnes muutetaan. +Parametrit: I (``J9``) diff --git a/help/fin/tools.rst b/help/fin/tools.rst index 6ba291e..25d3218 100644 --- a/help/fin/tools.rst +++ b/help/fin/tools.rst @@ -24,7 +24,7 @@ Valitsee hiirellä osoitetun kohteen aktiiviseksi. Alueet valitaan osoittamalla |line image| Viiva ^^^^^^^^^^^^^^^^^^ -Piirtää kahden pisteen viivan. Peräkkäiset kahden pisteen viivat muodostavat murtoviivan ja sulkeminen alkupisteeseen muodosta alueen. +Piirtää kahden pisteen viivan. Peräkkäiset kahden pisteen viivat muodostavat murtoviivan ja sulkeminen alkupisteeseen muodostaa alueen. .. |rect corner image| image:: ../../image/rectangle_corner.png :scale: 50 % @@ -78,13 +78,20 @@ Piirtää ympyrän keskipisteestä kehälle. .. xxx Piirtää neljännesympyrän keskipisteestä kehälle. -.. |text image| image:: ../../image/text.png +.. |text horizontal image| image:: ../../image/text_horizontal.png :scale: 50 % +.. |text rotated image| image:: ../../image/text_rotated.png + :scale: 50 % + +|text horizontal image| Vaakasuora teksti +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -|text image| Teksti -^^^^^^^^^^^^^^^^^^^ +Piirtää vaakasuoran tekstin osoitettuun kohtaan. + +|text rotated image| Käännetty teksti +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Piirtää tekstin annettuun kohtaan. +Piirtää tekstin osoitettuun kohtaan käyttäen suuntana toista sijaintia. Asetukset --------- diff --git a/help/fin/usage.rst b/help/fin/usage.rst index 6b7507f..f543f48 100644 --- a/help/fin/usage.rst +++ b/help/fin/usage.rst @@ -1,7 +1,7 @@ Ohjelman käyttö =============== -xxx +Ohjelmaa voidaan käyttää suoraan yksittäisten symbolitiedostojen editointiin tai sitä voidaan kutsua muista ohjelmista komentoriviparametreilla ohjattuna. Komentorivi ----------- @@ -31,12 +31,12 @@ Näyttää komentorivin ohjeen. file ^^^^ -Symbolitiedoston nimi. Symbolitiedosto on tekstitiedosto, joka sisältää symbolin määrittelyn. +Symbolitiedoston nimi. Symbolitiedosto on tekstitiedosto, joka sisältää yksittäisen symbolin määrittelyn. Katso :ref:`symbol-format-label`. Käyttöliitymä ------------- -xxx +Käyttöliitymä on perinteinen työpöytäkäyttöliittymä. Kaikki työkalut ovat käytettävissä valikon kautta ja tärkeimmät myös työkalupalkin painikkeina. Valikko ^^^^^^^ @@ -54,7 +54,7 @@ Katso :doc:`tools`. Editori ^^^^^^^ -xxx +Editointi tapahtuu valitsemalla ensin valikosta tai työkalupalkista piirtotyökalu. Hiiren painikkeen painaminen aloittaa uuden elementin lisäämisen ja painikkeen vapauttaminen tallentaa sen. Luotuja elementtejä ei voi muuttaa, vaan ne on ensin poistettaba ja piirrettävä sitten uudet. Tilarivi ^^^^^^^^ |
