Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 288 → Rev 289

/trunk/tools/eazytrans/vuh-gol-en.php
1,5 → 1,5
<!DOCTYPE html>
<html lang="en"">
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Golic Vulcan – Federation Standard English Dictionary</title>
30,19 → 30,36
font-weight: bold;
}
 
<?php
$source_lang = 'vuh-Latn-Gol';
?>
i[lang="<?php echo $source_lang; ?>"] {
font-style: normal;
}
 
i em {
font-weight: bold;
}
 
#toggle {
position: fixed;
top: 0;
right: 0;
}
</style>
</head>
<script type="text/javascript" src="/scripts/object.js"></script>
<script type="text/javascript" src="/scripts/dom/xpath.js"></script>
<script type="text/javascript">var LANG_VULCAN = '<?php echo $source_lang; ?>';</script>
<script type="text/javascript" src="/application/scripts/vulcan-media-script.js"></script>
</head>
 
<body>
<body onload="document.getElementById('toggle').click()">
<?php
$source_lang = 'vuh-Latn-Gol';
$target_lang = 'en-Latn-Federation';
$lines = file('vuh-gol-en.dict');
?>
<h1>Golic Vulcan – Federation Standard English Dictionary</h1>
<button type="button" id="toggle" onclick="mediaScript(this)"><span class="text">Media Script</span></button>
<?php
define('REGEXP_PREFIX_EXAMPLE', '/^ex\s*=\s*/');
 
138,7 → 155,7
array(
'“\\1”',
'<abbr class="type-or-context" lang="' . $target_lang . '">\\1</abbr>',
'\\1<i lang="' . $source_lang . '">\\2</i>',
'\\1<i lang="' . $source_lang . '" class="text">\\2</i>',
'/\\1',
'<em>\\1</em>',
'&nbsp;~',
145,7 → 162,7
),
$matches['transl']);
 
echo ($is_example ? "<i lang='$source_lang'>" : "<b lang='$source_lang'>")
echo ($is_example ? "<i lang='$source_lang' class='text'>" : "<b lang='$source_lang' class='text'>")
. $phrase
. ($is_example ? '</i>' : '</b>')
. " <span lang='$target_lang'>" . $transl . '</span>';