[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] unicode support, part 11: \[sqrt] vs \(sr
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] unicode support, part 11: \[sqrt] vs \(sr |
Date: |
Wed, 22 Feb 2006 10:11:35 +0100 (CET) |
> Does anyone see a difference between \[sqrt] and \(sr ?
`sr' is the text version, `sqrt' a mathematical symbol.
> groff_char.man has this:
>
> (N/A) \[sr] radical u221A square root +
> (N/A) \[sqrt] radical u221A ***
Ah, I've just committed an explanation for the `***' marker (it
denotes a glyph for mathematical purposes; its glyph metrics makes it
not usable within normal text).
> +++ groff-20060217/font/devdvi/S
> @@ -132,6 +132,7 @@
> \ "
> u2240 291272,728178,203888 3 0157
> sqrt 873816,41942,1006634 1 0160
> +sr "
This is wrong. The square root symbol from cmsy10 can't be used in
normal text! tcrm1000 actually does contain a text version, but this
isn't covered in the EC stuff in devdvi (an omission, basically).
> +++ groff-20060217/src/libs/libgroff/glyphuni.cpp
> @@ -398,7 +398,8 @@
> { "mi", "2212" },
> { "-+", "2213" },
> { "**", "2217" },
> -//{ "sqrt", "221A" },
> + // \[sqrt] and \(sr are the same.
> + { "sqrt", "221A" },
> { "sr", "221A" },
> { "pt", "221D" },
> { "if", "221E" },
This is wrong too. In glyphuni.cpp, a former entry with the same
Unicode value is overwritten by the latter one. With other words, the
entry for `sqrt' would never be visible.
Werner
- [Groff] Re: unicode support, part 13: \-, (continued)
[Groff] unicode support, part 10: \[shc], Bruno Haible, 2006/02/21
- [Groff] Re: unicode support, part 10: \[shc], Werner LEMBERG, 2006/02/23
- [Groff] Re: unicode support, part 10: \[shc] and the soft hyphen in HTML, Bruno Haible, 2006/02/23
- [Groff] Re: unicode support, part 10: \[shc] and the soft hyphen in HTML, Werner LEMBERG, 2006/02/24
- [Groff] Re: unicode support, part 10: \[shc] and the soft hyphen in HTML, Werner LEMBERG, 2006/02/23
[Groff] unicode support, part 12: \(la, \(ra, Bruno Haible, 2006/02/21
[Groff] unicode support, part 11: \[sqrt] vs \(sr, Bruno Haible, 2006/02/21