Giter Site home page Giter Site logo

Help file? about amphetype_new HOT 4 OPEN

adamgordonbell avatar adamgordonbell commented on June 2, 2024
Help file?

from amphetype_new.

Comments (4)

adamgordonbell avatar adamgordonbell commented on June 2, 2024

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.

DMarm avatar DMarm commented on June 2, 2024

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.

adamgordonbell avatar adamgordonbell commented on June 2, 2024

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:

http://regexr.com/

from amphetype_new.

DMarm avatar DMarm commented on June 2, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.