Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
undertype_notes [2013-06-25 09:49] – created nikundertype_notes [2013-07-01 17:13] (current) – 94.109.71.196
Line 1: Line 1:
 ==== Undertype Notes ==== ==== Undertype Notes ====
  
-notes for http://home.gna.org/undertype/+Notes for http://home.gna.org/undertype/ a line based typesetting and layout programme
  
-keys+==== Build notes for linux ==== 
 +  * git clone git: / / git.constantvzw.org/osp.tools.undertype.git 
 +  * cd osp.tools.undertype.git 
 +  * mkdir build 
 +  * cd build 
 +  * qmake 
 +  * make 
 +  * cd bin 
 +  * RUN THE SOFTWARE 
 +  * ./undertype
  
 +==== build notes for OSX ====
 +  * svn co svn: / / svn.gna.org/svn/undertype/trunk undertype 
 +  * sudo port install freetype qt4-mac
 +  * qmake 
 +  * <del>add "INCLUDEPATH += /opt/local/include/freetype2" to src/src.pro</del>
 +  * make
  
- QList<QGraphicsItem*> it = selectedItems(); +==== rebuild ==== 
- if ( it.isEmpty() && event->modifiers().testFlag ( Qt::ControlModifier )  && event->modifiers().testFlag ( Qt::ShiftModifier ) ) +  * git pull 
- { +  * make clean && qmake && make
- switch ( event->key() ) +
- { +
- case Qt::Key_Right : slotJustifyItsVeryBadInterletter ( 0.005 ); +
- break; +
- case Qt::Key_Left : slotJustifyItsVeryBadInterletter ( -0.005 ); +
- break; +
- default:break; +
- }+
  
- } +==== terms / window names ==== 
- else if ( it.isEmpty() && event->modifiers().testFlag ( Qt::ControlModifier ) ) +  * 'Casses' ([en] "Type Case" (or just "Case") suggestion "Mixed Case") which control font use 
- { +  * 'Composteur' ([en] "Composing stick") for layout and editing of a single line 
- switch ( event->key() ) +  * Forme/Page on which various lines are arranged
- { +
- case Qt::Key_Right : slotJustifyBlanks ( 0.01 ); +
- break; +
- case Qt::Key_Left : slotJustifyBlanks ( -0.01 ); +
- break; +
- default:break; +
- }+
  
- } +==== basic workflow ====
- else if ( it.isEmpty() ) +
- { +
- QGraphicsView * v = views().first(); +
- switch ( event->key() ) +
- { +
- case Qt::Key_Up: v->scale ( 1.2,1.2 ); +
- break; +
- case Qt::Key_Down : v->scale ( 1.0/1.2,1.0/1.2 ); +
- break; +
- case Qt::Key_Right : slotJustifyBlanks ( 0.1 ); +
- break; +
- case Qt::Key_Left : slotJustifyBlanks ( -0.1 ); +
- break; +
- default:break; +
- }+
  
- } +  * change focus to 'Casses'  
- else +  * press 'New'  
- { +  * enter fontsize in dialog & open a font file (e.g something in OTF) 
- if ( event->key() == Qt::Key_Delete ) +  * charaters should be availble in a tray 
- { +  * if you want to enter characters using the keyboard (rather than by character name) ensure "Use Cmap" is selected 
- for ( uint i = 0; i < it.count();++i ) +  * type some text using the keyboard. this text should appear in the "Composteur" 
- { +  * if required, select and move the various letters 
- removeItem ( it[i] ); +  * press return to display the line in the "forme" (same in [en]) 
- glyphs.removeAll ( static_cast<ULGlyphItem*> ( it[i] ) ); +  * move line around as required  
- } +  * select line in the "forme" to make changes in the "Composteur"
- } +
- else if ( event->key() == Qt::Key_E ) +
- { +
- wantEdit ( static_cast<ULGlyphItem*> ( it.first() ) ); +
- }+
  
- else +====keys====
- { +
- for ( uint i = 0; i < it.count();++i ) +
- static_cast<ULGlyphItem*> ( it[i] )->keyForeign ( event );+
  
- } +focus on 'Casses' ([en] "Type Case" (or just "Case") suggestion "Mixed Case") 
-//  previewLine(); + 
- } +focus on 'Composteur' ([en] "Composing stick") 
-}+ 
 + 
 +| Shift & Key_Right | slotJustifyItsVeryBadInterletter ( 0.005 ) | 
 +| Shift & Key_Left | slotJustifyItsVeryBadInterletter ( -0.005 ) | 
 +| Control & Key_Right | slotJustifyBlanks ( 0.01 ) | 
 +| Control & Key_Left | slotJustifyBlanks | 
 + 
 + 
 +QGraphicsView * v = views().first(); 
 + 
 +| Key_Up | v->scale ( 1.2,1.2 ) | 
 +| Key_Down | v->scale ( 1.0/1.2,1.0/1.2 ) | 
 +| Key_Right | slotJustifyBlanks ( 0.1 ) | 
 +| Key_Left | slotJustifyBlanks ( -0.1 ) | 
 + 
 + 
 +| Key_Delete | glyphs.removeAll | 
 + 
 +| Key_E | wantEdit ( static_cast<ULGlyphItem*> ( it.first() ) ) | 
 + 
 +==== feature requests / bug reports ==== 
 +  * use backspace and delete keys interchangeably 
 +  * copy & paste (despite metaphorical inconsistency) 
 +  * enter key inserts a Unicode Character 'VULGAR FRACTION ONE HALF' (U+00BD) at the end of a line with qt4 on mac 
 +  * if a ttf font is used, the export to pdf break the curves, use oft preferabily
  

User Tools

Page Tools

Site Tools