Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


the UPA-constraint and danish word division

From: "Marie Bilde Rasmussen" <mariebilderas@-----.--->
To: xmlschema-dev@--.---
Date: 9/16/2006 12:54:00 AM
Hello everybody.

I can't represent the grammar that I need in aW3C schema without violating
the UPA-constraint.
My task is to represent hyphenation (acceptable word division) of danish
words.
This is my grammar expressed as an EBNF:

( hyphen, ( wordpart, ( ( ( hyphen, blank? ) | (blank, hyphen?) )?
wordpart )+ ) ) | ( ( wordpart, ( ( ( hyphen, blank? ) | (blank, hyphen?) )?
wordpart )+ ), hyphen? )

In (my somewhat broken) english this could be formulated as:
- each represented word consist of at least 2 word parts
- between two word parts, there may occur (at most) one hyphen and (at most)
one blank, their order is not significant and none of them are obligatory
-  a word can have an initial OR a trailing hyphen (suffixes and prefixes) -
a wordcan't have both, and most words have neither the initial nor the
trailing hyphen.

The hyphens represented as elements are NOT a representation of word
division points - they are part of the ortography of the word.

I can see, that my EBNF-representation violates the UPA-constraint in the
sense that it is not unambiguos which branch in the gramar tree is to be
used, when a hyphen is encountered immediately following a wordpart in the
input data.

Can anybody help me reformulating this rule or tell me why this
isn'tpossible witout violating the UPA-constraint. If so, I would be very
grateful :o)

Marie Bilde Rasmussen
Gyldendal Publishers,
Copenhagen (Denmark)


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent