What about adding support for underlined text?
Many kind of underline are possible, single line, double line, wavy line, etc.
This could be extended to have the line above the text or in the middle of it (overstrike).
The text flow could also be expanded to be able to write fractions, equations, etc.
Joc
What about adding support for underlined text?
Yes, could do. I'm not sure that it's a complete SoC job because I reckon I could have it done in a week (if, that is, I actually had a week to spare). Add about a month for somebody new to Inkscape's codebase and I still don't think it's enough.
Now adding support for underlines (including wavy ones) then putting spell-checking on top of it: that's something to sink your teeth into.
Incidentally, do we want to think about freeing up the Ctrl-U keystroke at some point? I'm undecided on the matter. On the one hand underline is much less frequently used than bold or italic (I'm going by the MS Word usage figures here) but on the other I'm sure that someone is going to get caught out by pushing Ctrl-U and having nothing obvious happen, so continues typing and wonders why no text appears. Anyway, something to think about.
The text flow could also be expanded to be able to write fractions, equations, etc.
I'm not sure that fractions/equations are a core feature of text layout. They seem to me to be more like tables (non-HTML ones, that is): something to be put on top of layout rather than tightly-coupled. This brings up the whole foreignObject can of worms as well, for integrating MathML/HTML neatly.
Richard.
On 5/1/06, Richard Hughes <cyreve@...400...> wrote:
Now adding support for underlines (including wavy ones) then putting spell-checking on top of it: that's something to sink your teeth into.
Wait, spellchecking must use a different underlining - purely a canvas item, with nothing added to SVG.
Incidentally, do we want to think about freeing up the Ctrl-U keystroke at some point?
Why? It may easily have a different action in Text tool than elsewhere, as e.g. Ctrl+B does now.
I'm not sure that fractions/equations are a core feature of text layout. They seem to me to be more like tables (non-HTML ones, that is): something to be put on top of layout rather than tightly-coupled. This brings up the whole foreignObject can of worms as well, for integrating MathML/HTML neatly.
Since yesterday, we have an extension that takes a TeX formula and produces a vector object out of it (requires latex, dvips and pstoedit to be installed). Check it out, it's very nice.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
Now adding support for underlines (including wavy ones) then putting spell-checking on top of it: that's something to sink your teeth into.
Wait, spellchecking must use a different underlining - purely a canvas item, with nothing added to SVG.
Of course, but that doesn't concern layout. All it needs to do is create the correct objects - it's up to the caller which arena those objects go in to.
Incidentally, do we want to think about freeing up the Ctrl-U keystroke at some point?
Why? It may easily have a different action in Text tool than elsewhere, as e.g. Ctrl+B does now.
Erm...it's the different action in text that I'm talking about. Unicode, remember?
Richard.
On 5/1/06, Richard Hughes <cyreve@...400...> wrote:
Erm...it's the different action in text that I'm talking about. Unicode, remember?
Ah, yeah. I forgot. I would have nothing against changing Unicode shortcut to something different.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org
What about adding support for underlined text?
Yes, could do. I'm not sure that it's a complete SoC job because I reckon I could have it done in a week (if, that is, I actually had a week to spare). Add about a month for somebody new to Inkscape's codebase and I still don't think it's enough.
I've never seen a program that does not support underlines, it's a glaring ommision IMHO.
OpenOffice supports underlines, but when an SVG export is loading into Inkscape, the underlines disapear.
It's great if it a simple thing to add underline, it should help to get it done soon.
By adding all other types of lines to text, plus other text attributes, it should be possible to make up a nice project.
Joc
On Mon, May 01, 2006 at 01:50:15AM -0400, Joc wrote:
What about adding support for underlined text?
Inkscape already renders underlined text. (It may not have a button for underlining in the Text&Font dialog, though that would be easy to add.)
One thing not done correctly is when subspans of text have a different colour. (See the CSS specification of text-decoration to see what I mean here.)
I haven't checked whether all of text-decoration's values are supported (even other than blink).
Many kind of underline are possible, single line, double line, wavy line, etc. This could be extended to have the line above the text or in the middle of it (overstrike).
Some of these are part of the text-decoration attribute, but not all of them.
Forgive me for not looking this up, it's well past my bed time.
Btw, re spell-checking: inkscape already optionally links against gtkspell, which takes effect in the Text tab of the Text&Font dialog. Currently it just uses the language of LC_MESSAGES rather than checking for xml:lang attributes, though this is partly a deficiency of gtkspell not honouring pango language spans (nor providing any other way of having multiple languages in a single text dialog).
pjrm.
What about adding support for underlined text?
Inkscape already renders underlined text. (It may not have a button for underlining in the Text&Font dialog, though that would be easy to add.)
This is news to me. The property gets read from the CSS, but nothing is ever done with it.
Your point about CSS's strange colour rules is worth re-emphasising, though. I was intending to go the full CSS3 route, even though it's still a draft, because it provides much clearer delineation between the various aspects of underline and hence allows more orthogonality in the layout code.
Richard.
participants (4)
-
bulia byak
-
Joc
-
Peter Moulder
-
Richard Hughes