| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
We were not correctly handling overlapping segments
in all cases, with <span segment='word'>. Improve this.
Update affected tests.
|
|
|
|
|
|
| |
We were not correctly handling the case where
wipe out a sentence boundary after the fact,
and were leaving behind a stray sentence end.
|
|
|
|
|
|
|
|
| |
We were not putting a line break at the end of the
text, in cases where a paragraph ends with a newline.
Enforce this in all break apis.
Update affected tests.
|
|
|
|
|
|
|
| |
Add attributes that let us override word and
sentence boundaries (and, indirectly, line breaks).
Tests included.
|
|
|
|
|
|
| |
Print out all the log attrs we have.
Update expected test outputs.
|
|
|
|
|
|
|
|
| |
Replace ‧ and | with a - when we break there.
Update affected test output.
Fixes: #603
|
|
|
|
|
|
| |
The code computing this is much better off in break.c,
so move it there, and keep the information in the
log attr array.
|
|
|
|
|
|
|
|
|
|
|
|
| |
So far, we've been applying attribute-based
customization while doing per-item tailoring.
But this is suboptimal, since it means we don't
have a full view of the log attrs, and can't
do invariant fixes that cross item boundaries.
Therefore, add a separate pango_attr_break
api that applies attributes to to the whole
paragraph, and make PangoLayout use it.
|
|
|
|
| |
Shuffle break.c around a bit.
|
| |
|
|
|
|
| |
Reshuffle things to make room for validation.
|
|
|
|
|
| |
pango_find_paragraph_boundary has nothing to do
with breaks, so move it to pango-utils.h
|
|
|
|
|
|
| |
pango_get_log_attrs was not using its language
argument at all. Pass it into pango_default_break
as part of the PangoAnalysis struct.
|
|
|
|
|
|
|
|
| |
Correctly classify tag characters as Grapheme_Extend,
so that we don't end up putting grapheme boundaries
in the middle of tag sequences.
Includes a test.
|
|
|
|
|
| |
Remove leftovers like #Type, reduce indentations
to avoid markdown block quotes, etc.
|
|
|
|
|
|
|
|
|
|
|
| |
When we retroactively remove a sentence boundary
because of rule SB8, we were not cleaning up the
sencence_start/end markers that have already been
derived from it. This can be seen in urls like
http://www.unicode.org/reports/tr29,
where we don't have any sentence boundaries, but
we leave a stray sentence_start/end at the first
/ after ".org".
|
|
|
|
| |
Make a bit more use of our types.
|
|
|
|
| |
Some formatting fixes for default_break.
|
|
|
|
| |
Give doc comments summaries, etc.
|
| |
|
|
|
|
| |
Make it clearer that we're not going to modify the attribute
|
| |
|
| |
|
|\
| |
| |
| |
| | |
Replace fallthrough comments with G_GNUC_FALLTHROUGH
See merge request GNOME/pango!177
|
| | |
|
| | |
|
|/ |
|
|
|
|
|
|
| |
We determined the category early on, don't
do the same work again later by calling
isdigit or isletter wrappers.
|
|
|
|
| |
Otherwise the introspection scanner will be majorly confused.
|
|
|
|
| |
This triggers compiler warnings.
|
|
|
|
|
| |
We were forgetting to copy allow-break attributes,
causing them to be prematurely freed. Oops.
|
| |
|
|
|
|
|
|
|
|
|
| |
We implement this in pango_tailor_break(),
after the script-specific breaking.
When line breaks are forbidden in a range,
we remove line and char break opportunities
inside the range.
|
|
|
|
|
|
| |
Without this, it is not possible to interpret
attributes, whose offsets are relative to the
beginning of the paragraph.
|
| |
|
| |
|
|
|
|
|
| |
To break correctly, use pango_default_break and
pango_tailor_break.
|
|
|
|
|
|
| |
This function lets you apply language-specific
tailoring on top of breaks produced by
pango_default_break.
|
|\
| |
| |
| |
| | |
Remove lang engine use
See merge request GNOME/pango!73
|
| |
| |
| |
| |
| | |
Drop all internal use of language engines.
The lang_engine field in PangoAnalysis is now unused.
|
| |
| |
| |
| | |
No need to go through the engine api anymore.
|
|/
|
|
| |
This reverts commit 50b1e8532c5211cebd3cea935f9ac91a087d5c35.
|
|
|
|
|
|
| |
Use a bit in PangoLogAttr to mark line breaks
that are due to soft hyphens; we want to insert
hyphens here later, if the break is taken.
|
|
|
|
| |
For Dependent Vowels, the grapheme needs to be deleted by character.
|
| |
|
|
|
|
|
|
|
| |
Make it clear that all text input must be valid UTF-8,
except in the case pango_layout_set_text, which we now
officially document as accepting and handling invalid
input.
|
|
|
|
| |
This ensures everything build with pre-C89 compilers.
|
| |
|