bdchauvette / leipzig.js Goto Github PK
View Code? Open in Web Editor NEWInterlinear glossing for the browser
Home Page: https://bdchauvette.github.io/leipzig.js/
License: ISC License
Interlinear glossing for the browser
Home Page: https://bdchauvette.github.io/leipzig.js/
License: ISC License
Thank you very much for creating this library. It is extremely good!
I have found a problem when when making text bold or colored. Hoping this can be fixed.
I made a string of the translated text bold. On the front end it made both the multiple lines of text bold (the original text plus the translated text bold).
Using bold for multiple words also throws out the alignment of the words slightly.
As an example here is the original result with no bold used (so you can see how the alignment is supposed to look):
Then here is a screenshot showing the text that I made bold in the editor:
This was by just wrapping the bold text in <strong></strong>
tags.
Here is a screenshot of the outcome:
To make it easy to replicate, the same issue can be seen on the http://bdchauvette.net/leipzig.js/demo/ page with these examples:
If only one word is made bold then the bold works fine:
But as soon as more than one word is bold, the problem happens:
Link to this demo
And if words are grouped with brackets inside the strong tags it really messes up - it ignores then meaning of the brackets, so the words go out of alignment, and shows the brackets on the front end:
Link to this demo
If a section of the text is set as a different colour, using a <span>
tag with an inline style, then the style code is outputted on the front end.
Ideally, a string of text could be bold or coloured and only the text selected as bold or coloured in the backend would output on the front end.
As a fallback, if it is too much work to fix the text colour options, then at least bold could be used, and other html tags with styles would be stripped out and not outputted onto the frontend.
Hello, first off all I'm grateful finally I met this tool and excited to use it on my blog.
May I get some insight on a detailed step by step usage on wordpress? I've been tinkering to find my own way but so far no avail.
Great little utility, very useful, thanks! I was wondering whether it was possible for the glosses to appear as numbered examples.
When I view anything rendered by leipzig.js on my smartphone (using Chrome on Android), the font shrinks to an unreadably tiny size.
I've looked into it a bit, and it seems to be caused by the float:left used in the CSS, which doesn't get caught by the built-in -webkit-text-size-adjust, so when the rest of the text gets inflated automatically, the Leipzig example gets left behind.
I haven't found a solution so far.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.