| break_richText/2 | Default to english (Great Britain) style linebreaks RT: RichText, TW: {Justification, Widths}. |
| break_richText/3 | Type = justified | ragged | preformatted | centered | ragged_force_split | simple_hyphenate Rules = is a the module name of the eg_hyphen_rules_*.erl file to use to determine how to hyphenate, this argument is only used when Type = justified Widths = [integer()] = lengths of the lines Lines = [ep_rich_text()], RT split into lines Widths' = remaining Widths values. |
| make_partitions/2 | make_partitions(M, Rules) -> [{Before, After}] M is a list of inlines that does not contain a space or a newline it must be split by hyphenating all words in M in all possible ways. |
break_richText(RT, TW) -> any()
Default to english (Great Britain) style linebreaks RT: RichText, TW: {Justification, Widths}
break_richText(RT::eg_richText:ep_rich_text(), X2::{line_split_t(), _Widths}, _Rules) -> {_Lines, _Widths, _Spill}
Type = justified | ragged | preformatted | centered | ragged_force_split | simple_hyphenate Rules = is a the module name of the eg_hyphen_rules_*.erl file to use to determine how to hyphenate, this argument is only used when Type = justified Widths = [integer()] = lengths of the lines Lines = [ep_rich_text()], RT split into lines Widths' = remaining Widths values
justified = Optimally break each line depending upon the widths doing hyphenation where possible and required ragged = break on first fit without hyphenation preformatted = break on NL centered = break on NL ragged_force_split = works as 'ragged' (break at word boundry) but this version will split words, that don't fit on the current line, without adding hyphenation. simple_hyphenate = workd as 'ragged_force_split' but adds hyphen at end of split words.
Note: ragged_force_split can still overflow the bounds of Widths if a single letter is wider than the row. Note: ragged_force_split can in theory perform as bad as O(WordLen^2) if the initial split position guess is badly of e.g. a variable width font used with the string "1111111111111...XXX", when the string and __line width__ is very long.make_partitions(M, Rules) -> any()
make_partitions(M, Rules) -> [{Before, After}] M is a list of inlines that does not contain a space or a newline it must be split by hyphenating all words in M in all possible ways. M is in normal order. Rules is a the module name of the eg_hyphen_rules_*.erl file to use to determine how to hyphenate
Generated by EDoc