Thierry Dumont 1 ماه پیش
والد
کامیت
64629b109b
6فایلهای تغییر یافته به همراه24 افزوده شده و 6 حذف شده
  1. 0 0
      All/textes
  2. 16 0
      notes.org
  3. 1 1
      progs/assembler.py
  4. 4 3
      progs/extr.py
  5. 1 1
      progs/genauteur.py
  6. 2 1
      progs/makeTitre.py

+ 0 - 0
All/all_texts → All/textes


+ 16 - 0
notes.org

@@ -2,3 +2,19 @@
 
 [[https://tex.stackexchange.com/questions/204669/combining-para-and-plain-footnotes-using-manyfoot][footnote switch]]
 
+* tomlib python
+
+moderniser le traitement des fichiesr data.yml ?
+
+* Python textwrap
+
+https://docs.python.org/3/library/textwrap.html
+
+
+* Python imagesize
+
+
+https://github.com/sysfce2/python-imagesize
+
+
+info = imagesize.get_info("test.png")

+ 1 - 1
progs/assembler.py

@@ -12,7 +12,7 @@ def addpath(x,ajout):
 # Récupérer la liste des textes à introduire
 #
 path2add="../Sources/Courante"
-with open("all_texts") as f:
+with open("textes") as f:
     lf0=  f.readlines()
     lf=[]
     for x in lf0:

+ 4 - 3
progs/extr.py

@@ -4,9 +4,10 @@
 #
 import sys,pypandoc,os,re,subprocess,yaml,hashlib
 #---------------------------------------------
-#sys.path.append(f"{os.getcwd()}/..")
-sys.path.append("/home/moi/Memoires/progs")
-
+#
+p=os.getcwd().find("Sources/")
+sys.path.append(f"{os.getcwd()[:p]}progs/")
+#
 from memmod import *
 import parsebib
 #----

+ 1 - 1
progs/genauteur.py

@@ -9,7 +9,7 @@ sys.path.append(f"{os.getcwd()}/..")
 from memmod import *
 #
 path2add= "../Sources/Courante"
-with open("all_texts") as f:
+with open("textes") as f:
     L= f.readlines()
 D={}
 for x in L:

+ 2 - 1
progs/makeTitre.py

@@ -6,7 +6,8 @@ from jinja2 import Environment, FileSystemLoader
 import os,yaml,sys
 
 #
-sys.path.append("/home/moi/Memoires/")
+p=os.getcwd().find("Sources/")
+sys.path.append(f"{os.getcwd()[:p]}progs/")
 from memmod import *
 #