473,395 Members | 1,987 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Markup for dictionary/glossary

I'm looking for an appropriate markup for a dictionary/glossary.
A dummy example is

English German
eight acht
five fünf
four vier
nine neun
one eins
seven sieben
six sechs
three drei
two zwei
zero null

The first idea is of course a <TABLE>. Are there other possibilities?
For example, a definition list <DLcomes into my mind. Although
the German term does not really /define/ the English term,
<DLmight come closest to the concept of a dictionary/glossary.
Feb 7 '07 #1
7 2632
Wed, 7 Feb 2007 15:18:31 +0100: Andreas Prilop
<An***************@trashmail.net>: in sci.lang:
>I'm looking for an appropriate markup for a dictionary/glossary.
A dummy example is

English German
eight acht
five fünf
four vier
nine neun
one eins
seven sieben
six sechs
three drei
two zwei
zero null

The first idea is of course a <TABLE>. Are there other possibilities?
For example, a definition list <DLcomes into my mind. Although
the German term does not really /define/ the English term,
<DLmight come closest to the concept of a dictionary/glossary.
I used tables in my http://rudhar.com/lingtics/ptesdiff.htm, and it
suits me fine.
--
Ruud Harmsen - http://rudhar.com

Feb 7 '07 #2
Andreas Prilop wrote:
I'm looking for an appropriate markup for a dictionary/glossary.
A dummy example is
English German
eight acht
[...]
The first idea is of course a <TABLE>.
A table is IMHO a little bit harder to read, if a term has more than one
translation.
Are there other possibilities?
For example, a definition list <DLcomes into my mind. Although
the German term does not really /define/ the English term,
<DLmight come closest to the concept of a dictionary/glossary.
<DLis the most appropriate. 'definition' is the usual term for the
right part of a dictionary or glossary. The left part is called
'subject', 'keyword', 'term'.

On dict.cc you can see both variants and switch between <DLand <TABLE>:
http://www.dict.cc/englisch-deutsch/ink.html # DL
http://www.dict.cc/?s=ink # TABLE

wiktionary uses <DL>, and my nomen.at uses DL-style (but not DL itself).

But look into TEI. AFAIR they have some XSLT for conversion of
TEI-dict.XML to HTML.

Helmut Wollmersdorfer
Feb 7 '07 #3
On 7 Feb, 14:18, Andreas Prilop <AndreasPrilop2...@trashmail.net>
wrote:
I'm looking for an appropriate markup for a dictionary/glossary.
I'd go with <dl>, unless you had a strong argument for more than two
columns when I'd switch to <table>

Feb 7 '07 #4
Scripsit Helmut Wollmersdorfer:
A table is IMHO a little bit harder to read, if a term has more than
one translation.
Why? You can put the translations each on a line of its own inside a cell,
or you can have a row in the table for each pair of words so that for a word
with multiple translations, you use rowspan="..." in the first cell.

In practice, the desired visual appearance is important, since you cannot
turn a <dlinto tabular presentation or a table into non-tabular
presentation in CSS. (Tools might exist in principle but aren't supported by
the most common browser.)
<DLis the most appropriate. 'definition' is the usual term for the
right part of a dictionary or glossary. The left part is called
'subject', 'keyword', 'term'.
<dlis possible, since a translation can indeed be seen as a definition,
but it is debatable whether <tableis more logical.

There's a particular practical benefit in using a table. You (i.e., the
generic user) can copy the table into his favorite spreadsheet program
(i.e., MS Excel), which can interpret the table in a way that lets him
reorder it conveniently and e.g. produce a reverse glossary.
But look into TEI. AFAIR they have some XSLT for conversion of
TEI-dict.XML to HTML.
For a complicated dictionary, one might need to look at general structured
formats indeed, but for delivery in HTML format, much of the structure needs
to be lost anyway.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Feb 7 '07 #5
Andreas Prilop wrote:
I'm looking for an appropriate markup for a dictionary/glossary.
A dummy example is

English German
eight acht
five fünf
four vier
nine neun
one eins
seven sieben
six sechs
three drei
two zwei
zero null

The first idea is of course a <TABLE>. Are there other possibilities?
For example, a definition list <DLcomes into my mind. Although
the German term does not really /define/ the English term,
<DLmight come closest to the concept of a dictionary/glossary.
Where I have a brief term with a longer definition, I use a definition
list. See my <http://www.rossde.com/internet/intr_gloss.htmlfor an
example.

Where I compare sets of two terms each that are about the same size
(including definitions), I use a table with a row per set of terms, with
two columns. This even works where occasionally a term on one side has
two or more terms on the other side. See my
<http://www.rossde.com/malaprops/malaprops.htmlfor an example.

Finally, where I know I will likely compare three or more terms in a
set, each with its own definition, I rely on CSS to format the page.
See my <http://www.rossde.com/malaprops/homonyms.htmlfor an example.
This example also uses sidebars to expand on how the terms in a set
differ. While the two-term page could have also been done this way, the
reverse is not true; this page could not reasonably be done with a table.

--

David E. Ross
<http://www.rossde.com/>

I use SeaMonkey as my Web browser because I want
a browser that complies with Web standards. See
<http://www.mozilla.org/projects/seamonkey/>.
Feb 7 '07 #6
Andreas Prilop <An***************@trashmail.netwrote in message
news:Pi******************************@s5b004.rrzn. uni-hannover.de...
I'm looking for an appropriate markup for a dictionary/glossary.
A dummy example is

English German
eight acht
five fünf
four vier
nine neun
one eins
seven sieben
six sechs
three drei
two zwei
zero null

The first idea is of course a <TABLE>. Are there other possibilities?
For example, a definition list <DLcomes into my mind. Although
the German term does not really /define/ the English term,
<DLmight come closest to the concept of a dictionary/glossary.
Have you looked at <OLOrdered Lists?
They often allow fast lookups with non-sequential binary searches.

Are you talking HTML, XML, SOAP or what?

pjk
Feb 8 '07 #7
On Thu, 8 Feb 2007, Paul J Kriha wrote:
Have you looked at <OLOrdered Lists?
They often allow fast lookups with non-sequential binary searches.
This is not a concern for a small list of words. I don't mean
heavy books like Webster's Dictionary.
Are you talking HTML, XML, SOAP or what?
HTML.
Feb 8 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Skip Montanaro | last post by:
Awhile ago, in response to confusion about the meaning of "iterable", I decided the Python documentation needed a glossary and created one with that single entry. Adding a glossary to the...
1
by: Skip Montanaro | last post by:
Thanks to people who submitted content for the Python Glossary: http://manatee.mojam.com/python-glossary I just completed a first pass at folding it into the Python tutorial. It's now a...
4
by: Brian van den Broek | last post by:
Hi all, in a recent thread Bengt Richter said unto the world upon 2004-09-04 15:31: <SNIP> > This brings up the question of standard terminology (e.g. for > namespace). If one googles...
0
by: Andy Rossmeissl | last post by:
Hi there- I run a rather large website that serves primarily as a technical information repository. I've been researching ways to process documents as they're served in such a way that technical...
1
by: syamlalz | last post by:
Hi all.. I want to create a math glossary in flash using XML to load data. http://www.icoachmath.com/SiteMap/MathDictionaryMain.html This is a sample site contains data. I would...
1
by: =?Utf-8?B?bWRyYXl3ZWxzaA==?= | last post by:
Would someone instruct me how to access the Glossary with the computer terminology. Thank you! Mark -- "I know that I do not know."
3
by: LongpreC | last post by:
Hi, I've been using Oracle Translation Hub with the Trados glossary to translate my application. It worked fine for the past 2 years. It stopped working for the past couple of days. Here's...
8
by: Andy B | last post by:
I have the object property StockContract.Dictionary which is a dictionary collection of <string, stringkey/value pairs. I need to be able to retreive the keys and their values and display them on a...
2
by: Andy B | last post by:
I don't know if this is even working or not but here is the problem. I have a gridview that I databound to a dictionary<string, stringcollection: Contract StockContract = new Contract();...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.