View Single Post
Old 05-04-2015, 08:30 AM   #9
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Bilingual View Post
Another project, I'm trying to get ahead with is a latin text. Her, I'd like to have some stress-markers in the text, but have them basically invisible for the purpose of text searching.
IMHO, the easiest solution would be to mark the stressed syllable as bold. You could also automatically display it in upper case letters using text-transform: uppercase. However, very few readers support the text-transform property.

For example:

Spoiler:
Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title></title>
  
<style type="text/css">
.stressed {font-weight: bold; text-transform: uppercase;}
</style>
</head>

<body>
  <h3>Latin stress examples</h3>

  <p>for<span class="stressed">tu</span>na</p>

  <p>philo<span class="stressed">so</span>phia</p>

  <p>pe<span class="stressed">cu</span>nia</p>
</body>
</html>


If you're planning to write a couple of Latin textbooks it might make sense to create a custom font in which all regular Latin lowercase characters have an acute accent.
Since the Latin Extended-A and Latin Extended-B Unicode ranges already contain precomposed glyphs with acutes, all you'd have to do is overwrite the regular Latin glyphs with these characters.

This can be easily done with a freeware font editor, e.g. Type light.
Doitsu is offline   Reply With Quote