Version 8 (modified by vanya, 16 years ago) (diff) |
---|
Analysis
Overview
http://sophie2.org/trac/wiki/TEXT_PARAGPRAPH_FORMAT_COMMONS_R0#Overview
Sophie users should be able to specify horizontal alignment of specific paragraph in the text directly into the paragraph HUD. Available values should be:
- Left
- Right
- Center
- Justified
- Optional: If the alignment is justified the user should be able to pick alignment for the last line.
Available values should again be:- Left
- Right
- Centered
- Justified
- Optional: If the alignment is justified the user should be able to pick alignment for the last line.
- Optional: Vertical alingment should also be available for the text in the frame.
Options should be:- Top
- Centered
- Bottom
- Justified
Users should be able to choose indentation of the paragraph text. Options should be:
- First line
- Users can choose positive or negative values of the indentation of the first line
- Values of the first line indent should be oriented according to the beginning of the paragraph.
- Before text
- Users should be able to set the indentation of the paragraph from the beginning (the left end) of the writable area in the frame to the beginning of the paragraph text itself.
- After text
- Users should be able to set the indentation of the paragraph from the end (the right side) of the paragraph text to the end of the writable area in the frame.
Spacing
- above paragraph
- below paragraph
- line spacing - single/1.5/double/fixed(cm, inch, pixels)
[[Include:: http://sophie2.org/trac/wiki/TEXT_PARAGRAPH_SPACING_R0#Overview]]
Paragraph HUD
Task requirements
- Create a paragraph HUD with easy to use controls
- Provide to the user the ability to manage paragraph alignment.
- Implement alignment:
- Left
- Right
- Centered
- Justified alignment remains as optional.
- Implement indentation in paragraphs:
- First line
- Before and after the selected paragraph
- Top and bottom indentation remain optional.
- Implement Spacing:
- Above paragraph
- Below paragraph
- Line spacing - single/1.5/double
- Fixed line spacing remains optional
Task result
- Task result should be code.
Implementation idea
(Provide some rough implementation idea(s).)
Related
- TEXT_PARAGRAPH_ALIGN_R0
- TEXT_PARAGRAPH_SPACING_R0
- TEXT_PARAGRAPH_STYLE_TEMPLATES_R0
- TEXT_PARAGRAPH_CHAR_STYLE_R0
- TEXT_PARAGRAPH_NEXT_STYLE_R0
- TEXT_HALO_MENU_R0
How to demo
- Run Sophie2
- Create a new book and add a text frame in it
- Populate some lorem ipsum text inside with a number of paragraphs (lorem ipsum generator --> http://www.lipsum.com/)
- See if you can adjust the settings of separated paragraphs
Design
(Describe your design here.)
Implementation
(Describe and link the implementation results here (from the wiki or the repository).)
Testing
(Place the testing results here.)
Comments
(Write comments for this or later revisions here.)