Giter VIP home page Giter VIP logo

journee-diary's People

Contributors

adueck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

journee-diary's Issues

rednotebook 2 journee skeleton

Hi, I propose a rednotebook 2 journee converter. It has to be improved.

from os import listdir
from os.path import isfile, join
import re

sourcedir = '../01_datainput/'
destdir = '../02_dataoutput/'


sourcefiles = [f for f in listdir(sourcedir) if isfile(join(sourcedir, f))]



for sourcefile in sourcefiles:
    f = open((sourcedir + sourcefile), "r")
    daynote=""
    isfirstmounthday = True
    for line in f:
        newdaysearch = re.search("^.[0-9]:$", line)
        if newdaysearch: # is it the line that contains the new day?
            if not isfirstmounthday: # if it is not the first day of the file, I have to save the gathered information
                if isopensinglequotepresent:
                    daynote = daynote[::-1]
                    daynote = daynote.replace("'", "", 1)
                    daynote = daynote[::-1]
                daynote=daynote.replace('\\n', '\n').replace('\\t', '\t')
                fwrite=open((destdir + filedestname), "w")
                fwrite.write(daynote)
                fwrite.close()
            daynote=""
            #let's compute the new filename
            newdaystring=line.replace(":","")
            newdaystring=newdaystring.replace(" ","")
            newdaystring = newdaystring.replace('\n' '', "")

            filedestname=sourcefile.replace(".txt","")
            filedestname=filedestname+'-'+newdaystring+".txt"
            isfirstmounthday = False
        else:
            if daynote == "":
                isopensinglequotepresent = False
                line=line.replace("  text: ","")
                if line[0] == "'":
                    line = line.replace("'", "",1)
                    isopensinglequotepresent=True
            #if not re.search(". *'$",line):
            daynote=daynote + line
    # saving the last day in the file
    if isopensinglequotepresent:
        daynote = daynote[::-1]
        daynote = daynote.replace("'", "", 1)
        daynote = daynote[::-1]
    daynote = daynote.replace('\\n', '\n').replace('\\t', '\t')
    fwrite = open((destdir + filedestname), "w")
    fwrite.write(daynote)
    fwrite.close()
    f.close()



few ideas

HI,

great tool, I was looking for something like that, running it on windows and Linux too.
What would you think about following few ideas (I am sure you though about them too)

  1. option to choose font (for all and whole entries - global)
  2. spell check with choice of language

mac version

Is there any difficult for mac version? Electron is cross platform.

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.