Make text overline like underlining

General comments and questions. Technical support.
Post Reply
Alan
Posts: 274
Joined: Wed Jul 24, 2002 11:57 am
Location: TN USA

Make text overline like underlining

Post by Alan »

Is there a way of overline text (to make a square root equation) like underlining text can be done?
Atlantis 5
Windows 11 Pro for Workstations
User avatar
admin
Site Admin
Posts: 2926
Joined: Wed Jun 05, 2002 10:48 pm
Contact:

Post by admin »

There is no standard way to do so. But you could insert the "overline" character (Unicode number 175), and format it with "compressed" character spacing. Please see attached sample document file.
Attachments
Overline.rtf
(9.72 KiB) Downloaded 573 times
Alan
Posts: 274
Joined: Wed Jul 24, 2002 11:57 am
Location: TN USA

Post by Alan »

Thank you, the suggestion worked very well. Is there a way to translate this for an ePub, so the overline shows in an ePub?
Atlantis 5
Windows 11 Pro for Workstations
Robert
Posts: 1906
Joined: Fri Aug 15, 2003 8:27 pm

Post by Robert »

Hi Alan,
Overscoring text is rather cumbersome to achieve in HTML. The problem is the same in EPUB code which is basically XHTML code.
The most practical solution is to create overscored text in Atlantis as Admin indicated, make an appropriate screen capture of it, and overwrite the original text with the screen capture. The picture with overscored text will be saved to EPUB, and will display correctly in all EPUB readers.

Note that there is an alternative way to create overscored text in Atlantis using a 2x1 table with appropriate borders and the square root Unicode character “√” (√). Typing “Alt+8730” in Atlantis will produce the square root character. Attached “Overscore.rtf” illustrates this possibility.

Alternatively again, you could use the Atlantis tweak_epub utility, and edit the EPUB code produced by Atlantis, using the HTML code illustrated in attached “Square root.htm” ("Square root.zip"). Note that a much better result can be achieved with complex HTML and CSS code: you’ll find an illustration of this at Solve square-root equations (basic), for example.

HTH.
Cheers,
Robert
Attachments
Square root.zip
(252 Bytes) Downloaded 571 times
Overscore.rtf
(1.63 KiB) Downloaded 558 times
Alan
Posts: 274
Joined: Wed Jul 24, 2002 11:57 am
Location: TN USA

Post by Alan »

Thanks for the suggestions Robert. This is more complicated than I want to get into as this would only be for my use on my Kobo Glo eReader, this would have been the icing on the cake.
Atlantis 5
Windows 11 Pro for Workstations
Post Reply