langsci / pypi

Packages for the Python Package index
2 stars 1 forks source link

Understand Word/LibreOffice styles #28

Open kopeckyf opened 1 year ago

kopeckyf commented 1 year ago

The following styles are currently not understood by the converter although they are used in the Libreoffice template:

styleNormal

Indicates a normal paragraph. Can be omitted from the conversion result.

styleLangSciBulletList

Should be replaced by \begin{itemize} ... \end{itemize}. A list entered with the style styleLangSciBulletList is converted to blocks like this:

\begin{listLFOixleveli}
\item \begin{styleLangSciBulletList}
Bullet list 
\end{styleLangSciBulletList}
\item \begin{styleLangSciBulletList}
also known as unordered list
\end{styleLangSciBulletList}
\end{listLFOixleveli}

I do not understand why the listLFOixleveli is being added. I can't find info on it within LibreOffice.

listLFOiileveli

Examples look fine, but I don't know where the listLFOiileveli, listLFOiilevelii etc are coming from.

\begin{listLFOiileveli}
\item \ea\label{ex:key:}
\langinfo{}{}{French (personal knowledge)}\\

\begin{listLFOiilevelii}
\item \ea\label{ex:key:}
\langinfo{}{}{Paris}\\
\end{listLFOiilevelii}
\end{listLFOiileveli}
\gll Ceci n'est pas une pomme\\
     this \textstyleLangSciCategory{neg} \textstyleLangSciCategory{cop}.\textstyleLangSciCategory{3sg}.\textstyleLangSciCategory{pres}  \textstyleLangSciCategory{neg}  \textstyleLangSciCategory{det}.\textstyleLangSciCategory{f} apple\\
\glt „This is not an apple.”\z

These lists seem to follow a pattern: listLFO<ID1>level<ID2>, where <ID2> is simply the list's nesting level and <ID1> a list id. For example, itemized lists are listLFOix, numbered lists are listLFOx, examples are listLFOii. Will have to find out where listLFO is coming from