mshang / syntree Goto Github PK
View Code? Open in Web Editor NEWJavascript/canvas linguistics syntax tree generator.
Home Page: http://mshang.ca/syntree
License: Other
Javascript/canvas linguistics syntax tree generator.
Home Page: http://mshang.ca/syntree
License: Other
I was wondering if we could have the following feature: embed the code (the bracketed string a user types) into the image generated (for some image formats that supports custom data embedding).
An example of this feature can be found in LaTeXiT. The LaTeX code is embedded into the image if the output format is chosen as e.g., PDF.
This frees the users from having to save the original code of the tree. If a user wants to edit the tree, they can simply recover the code by reading the data from the image (This will need to be accompanied by another new feature that decodes the image, of course).
As per the copy theory of movement - the option to have a terminal crossed out.
I'd like to name some of my nodes with individual Greek characters. Also, really nice site! The ease of use is amazing!
I think, that kind of feature only needs a very minimal jQuery text editor to have an autoclose features on text editor.
It is great to have links of any tree. However, it would be better if we also kept the options in the link too. Some might prefer non-lined terminals or another might have a special font-size, height or weight etc.
The only annoying thing would be extremely long links, but there is nothing to do since it's not server side to keep short links and redirect to the tree.
Do not check all options anytime one option is changed. This may help prevent the page from going to the top so much when options are changed.
Attempting to just type [
in (as part of [N
, like if I want to start with a non-sentence root) will cause errors and not immediately update as a result. It'll update once you attempt to add a child somehow, which makes sense considering this backtrace:
Uncaught TypeError: this.parent is null
check_triangle http://mshang.ca/syntree/js/syntree.js:51
go http://mshang.ca/syntree/js/syntree.js:311
handler http://mshang.ca/syntree/:148
<anonymous> http://mshang.ca/syntree/:186
jQuery 8
<anonymous> http://mshang.ca/syntree/:186
jQuery 11
syntree.js:51:7
Running latest Firefox on Windows 10 but I have a feeling this is pretty evident. I might make a pull request since this is a really minor thing, later today.
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.