Tom Hacohen
e5b331009b
Evas textblock: Added cursor_visible_range_get and cursor_range_formats_get.
...
SVN revision: 62259
2011-08-09 13:55:42 +00:00
Tom Hacohen
202623daed
Evas textblock: Fixed a bug in evas_textblock_cursor_char_coord_set.
...
SVN revision: 62258
2011-08-09 13:55:38 +00:00
Tom Hacohen
f765f1e290
Evas textblock: Fixed a bug in evas_textblock_cursor_line_coord_set.
...
SVN revision: 62257
2011-08-09 13:55:31 +00:00
Tom Hacohen
10117973c4
Evas textblock: Fixed compiler warning.
...
SVN revision: 62174
2011-08-07 08:30:46 +00:00
Tom Hacohen
575db1275d
Evas textblock: Add const to parameter as we don't change it.
...
This does not break API/ABI.
SVN revision: 62080
2011-08-04 06:15:46 +00:00
Tom Hacohen
943b22bcf7
Evas textblock: Fixed range_text_get with TEXT_PLAIN.
...
Until now, it only supported MARKUP, now it also supports plain.
Haven't tested it much, but it seems to be working. It can help a lot to
people who want to analyse the text, for example when implementing a spell
checker, or "search", as now the text maps exactly like the cursors map.
Still have to decide if that's the wanted API and set it in stone, or not
promise this and expose a different API for these kind of tasks.
SVN revision: 62011
2011-08-02 16:28:37 +00:00
Tom Hacohen
4f82ddea77
Evas textblock: Fixed format_append/prepend.
...
It should only treat format passed as a tag if it was passed with <>.
Otherwise, it should be treated as a regular format.
SVN revision: 61993
2011-08-02 12:17:09 +00:00
Tom Hacohen
19363f446e
Evas textblock: Renamed newline_mode_set/get -> legacy_newline_set/get.
...
SVN revision: 61992
2011-08-02 12:17:01 +00:00
Tom Hacohen
9145913cdc
Evas textblock: Use the set language with liblinebreak if known.
...
SVN revision: 61945
2011-08-01 10:45:42 +00:00
Tom Hacohen
2661895aec
Evas textblock: Fixed a bug with <i> identified as <item>.
...
SVN revision: 61944
2011-08-01 09:11:46 +00:00
Tom Hacohen
473a719455
Evas textblock: Added "lang" to markup to set the language.
...
SVN revision: 61942
2011-08-01 08:21:15 +00:00
Tom Hacohen
bd556d9c14
Evas textblock+font: Fixed the font fallbacks support.
...
SVN revision: 61940
2011-08-01 08:21:09 +00:00
Tom Hacohen
316393df91
Evas textblock: Fixed cond jump depends on uninit value.
...
SVN revision: 61939
2011-08-01 08:21:05 +00:00
Tom Hacohen
d3cbb5e584
Evas textblock: Fixed if to be else if in format handling.
...
SVN revision: 61938
2011-08-01 08:21:02 +00:00
Tom Hacohen
b3995dfc6c
Evas textblock: Added font_width to markup.
...
SVN revision: 61937
2011-08-01 08:20:59 +00:00
Tom Hacohen
9ba3e192a5
Evas font+textblock: Stopped using FcNameParse, parse ourselves.
...
FcNameParse is pretty bad, not only that it's pretty bad, it doesn't
work well in some cases. Also this makes our lives a lot easier since
we want to allow overriding style/weight/width and etc from markup.
We now parse the "font" markup ourselves, populating a font description
structure that we created, and then override values in it as needed.
SVN revision: 61936
2011-08-01 08:20:52 +00:00
Tom Hacohen
93e4267051
Evas textblock: Fixed a memory leak.
...
Thanks to discomfitor for the report.
SVN revision: 61925
2011-07-31 08:09:02 +00:00
Tom Hacohen
3432644acd
Evas textblock: Changed 'heavy' weight to 'black'.
...
Apparently that's what FC likes.
SVN revision: 61859
2011-07-28 14:32:40 +00:00
Tom Hacohen
0d7d7d8f06
Evas textblock: Fixed a bug with font_weight and font_style.
...
Forgot to add a space when I add a new style when there wasn't one before.
SVN revision: 61855
2011-07-28 12:59:36 +00:00
Tom Hacohen
43618428b4
Evas textblock: Added font_weight and font_style formats.
...
These allow overriding the font style defined using "font=':style=Bold'".
SVN revision: 61854
2011-07-28 12:43:41 +00:00
Tom Hacohen
5fd7c82d5f
Evas textblock: Format tags now support quoting values.
...
For example: "<font='Sans:style=Bold Oblique'>bla</font>".
SVN revision: 61843
2011-07-28 09:18:55 +00:00
Tom Hacohen
bb87f260a6
Evas textblock: Removed useless alloca.
...
SVN revision: 61842
2011-07-28 09:18:50 +00:00
Tom Hacohen
d0d6d5494b
Evas textblock: Fixed a bug with format invalidation.
...
With the following example text: "aa<b>a <i>bbb</i> ccc", adding a </b>
at the end wouldn't cause an invalidation to happen as expected.
SVN revision: 61805
2011-07-27 11:27:25 +00:00
Tom Hacohen
0b7030a964
Evas textblock: Fix format_append's format parsing.
...
It took the pre-translated (tags) format which caused some things not to
work correctly when using tags.
SVN revision: 61798
2011-07-27 08:27:04 +00:00
Tom Hacohen
666988aa4c
Evas textblock: Fixed a bug with item visibility check.
...
SVN revision: 61752
2011-07-26 11:47:55 +00:00
Tom Hacohen
fd0bc3b2b1
Evas textblock: Fixed invalidate_text_nodes to work with <b><i></b></i>
...
SVN revision: 61751
2011-07-26 11:47:51 +00:00
Tom Hacohen
d042763162
Evas textblock: Fixed remove_pair and remove_matching.
...
They now work with <b><i></b></i> mixes.
SVN revision: 61750
2011-07-26 11:47:48 +00:00
Tom Hacohen
5b15fc2d2a
Evas textblock: Use orig_format instead of _style_match_replace.
...
It's more correct as you won't get unwanted translations you would have
in some cases, or even worse, breaking markup get when you have synonymous
tags.
SVN revision: 61748
2011-07-26 11:47:41 +00:00
Tom Hacohen
681e4bfa8c
Evas textblock: Fixed _format_append to parse tags + incomplete stuff.
...
Added the first step to allow <b> </b> exact matching when handling formats.
I.e making "<b>a<i>b</b>c</i>d" behave like expected.
SVN revision: 61746
2011-07-26 11:47:19 +00:00
Tom Hacohen
123e491079
Evas tests: Adedd a textblock test for the last bug fix.
...
SVN revision: 61639
2011-07-24 08:50:46 +00:00
Tom Hacohen
53fc933312
Evas textblock: Fixed updating of formats position on char_delete.
...
Format offsets got wrong when merging paragraphs.
SVN revision: 61638
2011-07-24 08:50:42 +00:00
Tom Hacohen
5aba518db0
Evas textblock: Fixed native size calculation with relative items.
...
SVN revision: 61560
2011-07-21 14:04:52 +00:00
Tom Hacohen
6299cbd685
Evas textblock: Fixed some more line height calculations.
...
Some issues were related to SIZE_REL items and some were not.
SVN revision: 61559
2011-07-21 14:04:48 +00:00
Tom Hacohen
083095a903
Evas textblock: Fixed relative items size calculation.
...
Now they are calculated according to real line height, and not just line
height before this point. Furthermore, this also fixes some issues with
wrapping not being correct.
SVN revision: 61557
2011-07-21 12:53:39 +00:00
Tom Hacohen
055f9996ec
Evas textblock: Fixed removing of format pairs in a rare case (range).
...
Until now, removing the <ps> when <b><ps></b> would have left the
<b></b> intact instead of removing them when using a range delete.
SVN revision: 61530
2011-07-20 15:45:21 +00:00
Tom Hacohen
412b203b46
Evas textblock: Fixed removing of format pairs in a rare case.
...
Until now, removing the <ps> when <b><ps></b> would have left the <b></b>
intact instead of removing them.
SVN revision: 61529
2011-07-20 15:45:12 +00:00
Tom Hacohen
bdbc3b8398
Evas textblock: Fixed handling.
...
It now translates to a real nbsp, and not just a space.
SVN revision: 61527
2011-07-20 14:13:33 +00:00
Tom Hacohen
9f7d3f8af8
Evas tests: Added a test to verify last textblock bugfix.
...
SVN revision: 61505
2011-07-19 15:14:40 +00:00
Tom Hacohen
6eb5cdc681
Evas textblock: Fixed a bug when the last paragraph is empty.
...
SVN revision: 61504
2011-07-19 14:32:54 +00:00
Tom Hacohen
1fdf2c67b5
Evas textblock: Adjusted textblock_item_text struct fields.
...
Removed the unused per-item baseline and changed inset to Evas_Coord.
SVN revision: 61443
2011-07-17 13:42:55 +00:00
Tom Hacohen
7f37b26856
Evas textblock: Fixed inline valign.
...
SVN revision: 61442
2011-07-17 13:42:51 +00:00
Tom Hacohen
73a5f2277a
Evas textblock: Fixed a bug in mixed wrapping mode.
...
SVN revision: 61440
2011-07-17 11:15:18 +00:00
Tom Hacohen
6898c688f2
Evas textblock: Fixed linegap.
...
SVN revision: 61438
2011-07-17 10:48:05 +00:00
Tom Hacohen
0af138b6ff
Evas textblock: Fixed a bug in RELSIZE items size calculation.
...
SVN revision: 61436
2011-07-17 10:47:58 +00:00
Tom Hacohen
c47d4bebd8
Evas text: Added _text_props_cluster_next.
...
Started using it in tb.
SVN revision: 61435
2011-07-17 10:47:54 +00:00
Tom Hacohen
4f9010d33d
Evas textblock: Fixed an issue with item formats.
...
They weren't pushed to the format stack which in turn meant </item> popped
unrelated formats causing a mess in the stack.
SVN revision: 61434
2011-07-17 10:47:39 +00:00
Tom Hacohen
4431349f56
Evas textblock: Removed useless code. We should never get there.
...
SVN revision: 61370
2011-07-14 14:25:46 +00:00
Tom Hacohen
00e8406b24
Evas textblock: Fixed cursor_coord_set with rtl/bidi in some cases.
...
Fix it when pressing beyond line boundaries.
SVN revision: 61368
2011-07-14 14:25:39 +00:00
Tom Hacohen
344a98d2a9
Evas textblock: Added a small fix to valign.
...
SVN revision: 61366
2011-07-14 12:47:17 +00:00
Tom Hacohen
77978d965a
Evas textblock: Fixed an issue with in-line valign.
...
Thanks to SeoZ for the report.
SVN revision: 61365
2011-07-14 12:31:24 +00:00