[Solved+Issue] Notation for angle measurements

Discuss the formula editor
Post Reply
Prosper
Posts: 2
Joined: Wed Nov 11, 2009 10:53 pm

[Solved+Issue] Notation for angle measurements

Post by Prosper »

How do I get a nice notation for, e.g. 25 degrees, 13 minutes and 51 seconds ?
For degrees we have ° , for minutes an accent ' and for seconds a double accent ".
But the latter is a reserved symbol... meaning that after it, text will appear in the formula...
Last edited by Hagar Delest on Sun Jun 12, 2011 10:54 pm, edited 1 time in total.
Reason: tagged [Solved].
User avatar
keme
Volunteer
Posts: 3705
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Notation for angle measurements

Post by keme »

I believe you'll have to define it as a named symbol.
  • Tools - Symbol
  • Edit button
  • In the second input field below the character grid, select a suitable symbol set, or type a name to create a new set (e.g. "Angles")
  • Add your symbol:
    • In the first input field below the grid, type a name for the symbol (e.g. "seconds")
    • Select the " character in the grid
    • Click the Add button
  • Optionally, add degrees and minutes symbols to the Angles set, so you have a consistent set of symbols.
Named symbols are referenced by "%name", so your angle can now be typed as 12 %degrees 5 %minutes 32 %seconds
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
User avatar
RGB
Posts: 1456
Joined: Mon Oct 08, 2007 1:34 am

Re: Notation for angle measurements

Post by RGB »

A quick work-around is to insert two single quotes between two double quotes: the single quotes will be considered as "plain text" and will look as a double quote:

Code: Select all

10º20'20"''"
There are two types of people: those who believe that there are two types of people and those who do not.

openSUSE Leap with KDE Plasma / LibreOffice
User avatar
keme
Volunteer
Posts: 3705
Joined: Wed Nov 28, 2007 10:27 am
Location: Egersund, Norway

Re: Notation for angle measurements

Post by keme »

RGB wrote:A quick work-around is to insert two single quotes between two double quotes: the single quotes will be considered as "plain text" and will look as a double quote:

Code: Select all

10º20'20"''"
Certainly simpler than my proposed symbol naming, and more portable too, I guess. Nice catch!

If you're picky, you may need to adjust the font style to make it look good. With default setup, characters given unquoted are rendered slanted (in italics), but quoted strings are rendered with straight characters. That means the quick workaround will have a different slant for minute and second apostrophes. The easiest would be to quote both.

Code: Select all

10º20"'"20"''"
Another possibility is to use the ital or nital keywords.
Apache OO 4.1.12 and LibreOffice 7.5, mostly on Ms Windows 10
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: Notation for angle measurements

Post by Horus »

Even though "''" does the trick, it is still nice to be able to escape the " character.

Hence, the enhancement request at http://openoffice.org/bugzilla/show_bug.cgi?id=118164
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved+Issue] Notation for angle measurements

Post by acknak »

A couple of alternatives...
Attachments
dms_notation.png
dms_notation.png (11 KiB) Viewed 14015 times
dms_notation.odt
(14.35 KiB) Downloaded 389 times
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

Thank you.

Someone told me so in the bug as well.

A curious question: how did you enter those Unicode characters? Did you use Windows' Character Map and do a copy-paste? Or do you have some trick to enter Unicode value within OOO Math?
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved+Issue] Notation for angle measurements

Post by acknak »

I used cut/paste from the character map tool that comes with Gnome on Linux; it's similar to the Windows tool.

Once you have them in the formula editing window, you can just copy/paste from there.

You could use keme's suggestion for defining symbols, of course, but I can't think of any approach that's as easy as using the plain ascii characters.
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

I see. Exactly what I thought, thanks.

The double-prime Unicode character (U+2033) (as well as other "prime" characters) doesn't seem to be inside OpenSymbol font. However, in my XP, I could find it in "Arial Unicode MS" font. But if I define it like this as a symbol, it's pretty sure the symbol can't be displayed in Linux. Hmm ... --> file a request to include it in OpenSymbol font?

There's this STIX fonts package (at http://www.stixfonts.org/) where "prime" characters can be found in "STIX General" font. Could OpenOffice include it in the official package? Or maybe at least points users to download it when users open Math for the first time?

PS: The "symbol editor" isn't very intuitive or user-friendly.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved+Issue] Notation for angle measurements

Post by acknak »

PS: The "symbol editor" isn't very intuitive or user-friendly.
If I have anything challenging to work on, I just use a good text editor and copy/paste into Math.

The PRIME and DOUBLE PRIME characters seem to be coming from the Times New Roman font on my system. The "Liberation" font family installed with OOo also seems to have them.

The STIX fonts are excellent of course, but I wonder if they're needed by most users.
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

For the record:
* It's already reported in http://openoffice.org/bugzilla/show_bug.cgi?id=52620 that "prime" characters are not in OpenSymbol
* The same person had also filed a request at http://openoffice.org/bugzilla/show_bug.cgi?id=115481 to have STIX incorportated into OOO

STIX fonts are small: 1.4MB uncompressed which is small compared to the setup file size of OOO. And since OOO has already installed other fonts like "Liberation" and "DejeVu" for math, one more or one less doesn't seem to change any difference.

But in a simple user's viewpoint, I really don't want to care about what font is used for what part of a mathematical expression. I don't like fancy thing in an expression anyway. It would be nice if they can stop the font war (if there's any) amongst OpenSymbol, STIX or DejaVu; and instead combine all the necessary symbols into a font or a font family or a package. All I want is to have a math expression shown correctly.
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved+Issue] Notation for angle measurements

Post by acknak »

I really don't want to care about what font is used for what part of a mathematical expression.
And you don't: OOo will display the symbol using whatever font provides the glyph, but you must have at least one font that provides it.

The prime symbols are included in at least one font that's included with OOo, so it shouldn't be a problem if you want to use them.
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

acknak wrote:
I really don't want to care about what font is used for what part of a mathematical expression.
And you don't: OOo will display the symbol using whatever font provides the glyph, but you must have at least one font that provides it.

The prime symbols are included in at least one font that's included with OOo, so it shouldn't be a problem if you want to use them.
I'm not sure why you said "I don't". I mean, when we define a new symbol, we have to choose the font first, no? And we have to go through all those small characters displayed inside the "grid" one by one to get the good one. That's why I said the Symbol Editor is very user-unfriendly. On top of that, the Font field drop-down menu only provides four lines for a list of at least twenty, thirty or even more available fonts in most modern computers nowadays :evil:

It would be nice if there's either one of the following possibilities for advanced users:
1. a field showing the Unicode value of the character currently selected inside the "grid" (of course, for "Unicode" fonts). So we could jump quickly through the grid if we know more or less the value we are looking for
2. a field to enter the Unicode value and the Editor figures out the first font to use.
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

Horus wrote: On top of that, the Font field drop-down menu only provides four lines for a list of at least twenty, thirty or even more available fonts in most modern computers nowadays :evil:
And hence a wish filed at http://openoffice.org/bugzilla/show_bug.cgi?id=118179
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: [Solved+Issue] Notation for angle measurements

Post by acknak »

Sorry, I misunderstood. You said "symbol editor" and I thought "formula editor".

Yes, you're right, the symbol editor depends on the user selecting the right font. It's is almost a waste of time: the usefulness of that feature is questionable, and the way it works is awkward, to say the least.

I prefer to enter the Unicode character directly in the formula editor. I either use the system character map (a far better tool than OOo's character map or the symbol editor), or I've memorized the code points for a few common symbols and I can insert a character by it's code.

That way, the formula isn't cluttered up with oddball symbol names and OOo can choose the font; I don't need to worry about what font provides the character.

If you do need to know what fonts provide a certain character, you can try this web site: fileformat.info They provide font coverage information for any character. I don't know how up to date their information is, but it's a start.
AOO4/LO5 • Linux • Fedora 23
Horus
Posts: 86
Joined: Mon Apr 21, 2008 12:21 pm

Re: [Solved+Issue] Notation for angle measurements

Post by Horus »

acknak wrote:Sorry, I misunderstood. You said "symbol editor" and I thought "formula editor".
Oh...
The other guy from the "bug report" and you suggested me to use the symbol but I think I'll just do like you -- use "raw" Unicode and say "bye bye" to keme's suggestion :)
... until next better solution.
Post Reply