Random Markup Properties Test This is a test of arbitarily overlapping markup properties. The user specifies a set of property names suitable for poetry, drama or novel, a suitable text and a markup density. The program projects those properties randomly over the text, creating many cases of overlap. It then converts this random markup into valid HTML. In the process property ranges can be dropped. This is inevitable with the crazy random markup of this test, and only happens when neither of two properties over the same range may contain the other. This will happen very little in practice. The purpose here is to find flaws in an algorithm, not to markup up a text in any practical way. The final box tries to display the overlapping properties themselves by interleaving coloured spans one letter at a time whererever the properties overlap.
HTML
C. IULI CAESARIS DE BELLO GALLICO COMMENTARIUS PRIMUS GALLIA est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis Garumna flumen, a Belgis Matrona et Sequana dividit. Horum omnium fortissimi sunt Belgae, propterea quod a cultu atque humanitate provinciae longissime absunt, minimeque ad eos mercatores saepe commeant atque ea quae ad effeminandos animos pertinent important, proximique sunt Germanis, qui trans Rhenum incolunt, quibuscum continenter bellum gerunt. Qua de causa Helvetii quoque reliquos Gallos virtute praecedunt, quod fere cotidianis proeliis cum Germanis contendunt, cum aut suis finibus eos prohibent aut ipsi in eorum finibus bellum gerunt. [Eorum una, pars, quam Gallos obtinere dictum est, initium capit a flumine Rhodano, continetur Garumna flumine, Oceano, finibus Belgarum, attingit etiam ab Sequanis et Helvetiis flumen Rhenum, vergit ad septentriones. Belgae ab extremis Galliae finibus oriuntur, pertinent ad inferiorem partem fluminis Rheni, spectant in septentrionem et orientem solem. Aquitania a Garumna flumine ad Pyrenaeos montes et eam partem Oceani quae est ad Hispaniam pertinet; spectat inter occasum solis et septentriones.]
OVERLAPPING PROPERTIES C. IULI CAESARIS DE BELLO GALLICO COMMENTARIUS PRIMUS GALLIA est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum l i n g u a Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt. Gallos ab Aquitanis G a r u m n a f l u m e n , a B e l g i s M a t r o n a e t S e q u a n a d i v i d i t . H o r u m o m n i u m f o r t i s s i m i s u n t B e l g a e , p r o p t e r e a q u o d a c u l t u a t q u e h u m a n i t a t e p r o v i n c i a e l o n g i s s i m e a b s u n t , m i n i m e q u e a d e o s m e r c a t o r e s s a e p e c o m m e a n t a t q u e e a q u a e a d e f f e m i n a n d o s a n i m o s p e r t i n e n t i m p o r t a n t , p r o x i m i q u e s u n t G e r m a n i s , q u i t r a n s R h e n u m i n c o l u n t , q u i b u s c u m c o n t i n e n t e r b e l l u m g e r u n t . Q u a d e c a u s a H e l v e t i i q u o q u e r e l i q u o s G a l l o s v i r t u t e p r a e c e d u n t , q u o d f e r e c o t i d i a n i s p r o e l i i s c u m G e r m a n i s c o n t e n d u n t , c u m a u t s u i s f i n i b u s e o s p r o h i b e n t a u t i p s i i n e o r u m f i n i b u s b e l l u m g e r u n t . [ E o r u m u n a , p a r s , q u a m G a l l o s obtinere dictum est, initium capit a flumine Rhodano, continetur G a r u m n a f l u m i n e , O c e a n o , f i n i b u s B e l g a r u m , a t t i n g i t e t i a m a b S e q u a n i s e t H e l v e t i i s flumen Rhenum, vergit ad septentriones. Belgae a b e x t r e m i s G a l l i a e f i n i b u s o r i u n t u r , p e r t i n e n t a d i n f e r i o r e m p a r t e m f l u m i n i s R h e n i , s p e c t a n t i n s e p t e n t r i o n e m e t o r i e n t e m s o l e m . A q u i t a n i a a G a r u m n a f l u m i n e a d P y r e n a e o s m o n t e s e t e a m p a r t e m O c e a n i q u a e e s t a d H i s p a n i a m p e r t i n e t ; s p e c t a t inter occasum solis et septentriones.]
Key: para italics quote head chapter