Comments (4)
Hi Dmarm,
I think the lesson split regex is used to split text into lessons when you import it in. Sorry on the lack of documentation, I was just adding little tweaks here and there to support my personal usage.
from amphetype_new.
Thanks for your answer.
I tried to play with the regex but was not able to make it works. I tried to use the \n to get new lesson for each line but without any luck. Don't know what I missed as I'm not really good at coding language.
In addition, as I was trying to find a way to format my lesson correctly, do you think it could be possible to get a special character, for example #, to split your lesson?
Everytime amphetype find a # it will create a new line but it won't include the # character.
That would greatly help to lay down your lesson as you wish.
For example sometimes I'd like to keep 3 lines together but separate the other lines one by one. With a special character I can do it without letting the segmentation being done automatically.
What I did with the current version is adding # in the regex field and it did split my lesson as expected but I had to type the #Β in the lesson, which is not exacly intended.
Thanks again for your work.
from amphetype_new.
Hi,
That should be easy. Make the regex # and I think there is a strip field, that will strip characters.
You can test the regex here:
from amphetype_new.
I add still no luck with this.
If I only put [\n] in the regex field in parameters, it doesn't import anything. If I only put # it seems to miss some part of the text.
What I did was creating a text, place my # at the end of the lessons, set min max length to 20-500 and import but I never managed to get anything import properly.
At least I got the strip function working, it removes the # charaters but it also seems to remove random part of my text.
Thanks for the link I managed to test my expression and it works. That will be really usefull.
Edit:
If I import the same text in lalop version it is imported correctly but it doesn't strip the character. There may be something wrong with the import and how it handle the new lines.
from amphetype_new.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amphetype_new.