Пример #1
0
import os, re, time, sys
import urllib

from mkdoc_utils import system_or_exit
from mkdoc_utils import include
from mkdoc_utils import sed_sub_tex_spec_chars

rst2latex = os.getenv("RST2LATEX", "rst2latex.py")

o = open("userguide.rst", "w")
print >> o, """Magic Lantern v2.3
==================================

"""
include(o, "MANUAL.txt", 1);
include(o, "MN-AUDIO.txt");
include(o, "MN-EXPO.txt");
include(o, "MN-OVERLAY.txt");
include(o, "MN-MOVIE.txt");
include(o, "MN-SHOOT.txt");
include(o, "MN-FOCUS.txt");
include(o, "MN-DISPLAY.txt");
include(o, "MN-PREFS.txt");
include(o, "MN-DEBUG.txt");
include(o, "EPILOGUE.txt");

o.close()

def sub(file, fr, to):
    txt = open(file).read()
Пример #2
0

system_or_exit(
    "montage ../data/cropmks/CineSco2.bmp ../data/cropmks/CrssMtr2.bmp ../data/cropmks/Passport.bmp  ../data/cropmks/PhiPhoto.bmp -tile 4x1 -geometry 300x200+5+5 Cropmarks550D.png"
)

f = open("FEATURES.txt").readlines()
m = open("MANUAL.txt").readlines()
c = open("CONFIG.txt").readlines()

o = open("userguide.rst", "w")
print >> o, """Magic Lantern v2.3 -- User's Guide
====================================================

"""
include(o, "FEATURES.txt")
include(o, "MANUAL.txt", 1)
include(o, "MENUSTART.txt")
include(o, "MN-AUDIO.txt")
include(o, "MN-EXPO.txt")
include(o, "MN-OVERLAY.txt")
include(o, "MN-MOVIE.txt")
include(o, "MN-SHOOT.txt")
include(o, "MN-FOCUS.txt")
include(o, "MN-DISPLAY.txt")
include(o, "MN-PREFS.txt")
include(o, "MN-DEBUG.txt")
include(o, "MENUEND.txt")
include_indent(o, "FAQ.txt")
o.close()
Пример #3
0
    f = open(file,"w")
    f.write(txt)
    f.close()

system_or_exit("montage ../data/cropmks/CineSco2.bmp ../data/cropmks/CrssMtr2.bmp ../data/cropmks/Passport.bmp  ../data/cropmks/PhiPhoto.bmp -tile 4x1 -geometry 300x200+5+5 Cropmarks550D.png")

f = open("FEATURES.txt").readlines();
m = open("MANUAL.txt").readlines();
c = open("CONFIG.txt").readlines();

o = open("userguide.rst", "w")
print >> o, """Magic Lantern v2.3 -- User's Guide
====================================================

"""
include(o, "FEATURES.txt");
include(o, "MANUAL.txt", 1);
include(o, "MENUSTART.txt");
include(o, "MN-AUDIO.txt");
include(o, "MN-EXPO.txt");
include(o, "MN-OVERLAY.txt");
include(o, "MN-MOVIE.txt");
include(o, "MN-SHOOT.txt");
include(o, "MN-FOCUS.txt");
include(o, "MN-DISPLAY.txt");
include(o, "MN-PREFS.txt");
include(o, "MN-DEBUG.txt");
include(o, "MENUEND.txt");
include_indent(o, "FAQ.txt");
o.close()