hojel / epubia Goto Github PK
View Code? Open in Web Editor NEWEPUB Generator from Korean Text/Markdown
License: MIT License
EPUB Generator from Korean Text/Markdown
License: MIT License
설명 ========== Plain text 파일을 ePub 또는 PDF 로 출력 홈페이지: http://code.google.com/p/epubia 입력 ========== Plain text 파일을 넣어주면 인코딩 및 포맷을 알아서 포맷팅한다. 또한 Markdown 표현을 지원하여 텍스트를 포맷팅하거나 그림을 넣을 수도 있다. 그러나 Markdown과 다음이 다르다. - '-' 로 새로운 줄이 시작하더라도 numbered list 취급되지 않는다. - '*' 만 있는 줄은 문단과 문단 사이에 빈 문단을 삽입한다. - '* * *'은 문단과 문단 사이에 분리그림을 넣는다. - ' '(스페이스 4개) 또는 '\t(탭)'으로 시작하는 줄은 preformatted text로 취급한다. 참고: http://code.google.com/p/epubia/wiki/HangulText 자세한 사용예는 input/example 을 참고할 것. 책정보 ========== Markdown의 Meta 확장을 지원하여 텍스트 파일에 저자, 표지등의 책에 대한 정보를 삽입가능하다. Title: <책제목> Subtitle: <책 소제목> Author: <저자> Translator: <옮긴이> Publisher: <출판사> cover_url: <책표지 파일의 이름 또는 주소> ISBN: <분류코드> 자세한 사용예는 input/example 을 참고할 것. Daum 과 Naver OpenAPI를 이용하여 책정보를 자동으로 넣어준다. Naver 경우에는 개발키를 발급받아야함. GUI에서 넣어준 사용자 정보로 검색을 한다. 만약 사용자가 정보를 주지 않을 경우 파일이름으로 검색한다. 출력 ========== 3가지를 지원 - ePub - PDF - Markdown Text target/ 아래에는 출력기기 설정파일이 있다. 이 파일은 css 포맷으로 되어 있으며 주로 폰트파일 설정이 들어있다. 만약 새로운 폰트 파일을 사용하고 싶다면 비슷한 파일을 복사한 후 수정한다. tgtxchg 프로그램을 사용하여 epubia로 만들어진 epub 파일의 출력기기를 변경할 수 있다. 자동 챕터 인식 ========== 다음과 같은 경우 챕터로 인식한다. - 숫자만 있는 줄 - '제 1 장' 과 같은 줄이나 '제 1 장. 챕터명'과 같이 마침표가 중간에 있는 경우 - '第 一 章' - 'Chapter 1', 'Prologue', 'Epilogue' Customize ========== template/ 아래 있는 파일들을 수정하여 출력 ePUB의 형태를 customize 가능하다. template/generic.css 를 수정하여 변경가능한 사항들 - 줄간격: p{ line-indent } 변경. 기본값(1.4) - 들여쓰기: p{ text-indent } 변경. 기본값(1.2) - 문단간격: p{ margin-top } 변경. - 페이지 여백: body{margin-* } 변경. - 장(챕터) 글꼴: h1 - 절(섹션) 글꼴: h2 자세한 것은 아래를 참고. https://code.google.com/p/epubia/wiki/ePubTemplate 알려진 문제 ========== - 챕터 없이 섹션만 있는 경우 문제 발생 가능 알아두면 유용한 사항들 ====================== - 0.4.0 부터 챕터가 나눠져 있지 않은 경우에도 처리하도록 되어 있다. 그래도 가능하면 챕터를 수동으로 넣어주는 것을 권하며, 챕터를 모르는 경우 잘르고 싶은 위치에 '#' 만 넣도록 하자. - 제목이 없는 챕터('#'만 있는 줄)는 목차에는 보이지 않는다. - 시(poem)나 게임소설의 status 등은 tab(preformatted text)이 유용하다. - 편지등은 '>'을 이용한 indent가 유용하다. - 만약 검색이 마음에 들지 않는다면 ISBN 번호만을 넣고 검색하면 된다. - 출력기기용 설정을 변경하는 것 이외에도 generic.css 를 변경했을 때도 tgtxchg 를 사용하여 기존 epub의 수정이 가능하다. - 만들어진 ePUB에서 다시 편집을 하고 싶다면 calibre에서 markdown 출력으로 파일을 만들고 이를 epubia의 입력으로 하면 편하다. 설치 ================ 1. Python 2.7 설치 2. wxPython for Python 2.7 설치 3. 필요 패키지 설치 > easy_install pil > easy_install chardet > easy_install markdown > easy_install cheetah > easy_install reportlab > easy_install html5lib > easy_install pisa 4. 만약 C version Name Mapper가 없다는 경고가 날 경우: - http://www.lfd.uci.edu/~gohlke/pythonlibs/ - Precompile된 Cheetah, PIL 을 설치
fix ISBN parser
Original issue reported on code.google.com by [email protected]
on 4 Oct 2014 at 8:21
Attachments:
EPUB파일 만드는데 잘 안돼네요;;
PC에서 ADE로 보면 잘 나오는데
기기에서 보면 ㅁㅁㅁㅁㅁ 이렇게 나옵니다~
Markdowan txt로 만드면 잘나옵니다..
뭐가 문제 일까요?
기기는 DR800SG입니다
Original issue reported on code.google.com by [email protected]
on 26 May 2011 at 7:38
Attachments:
윈도8.1에서 첨부한 그림처럼 멈추네요
Original issue reported on code.google.com by [email protected]
on 18 Feb 2014 at 4:37
Attachments:
target폴더에서 누크터치용 프로필을 만들었고.
폰트주소를 아래와 같이 수정했습니다.
res:///system/fonts/DroidSansFallback.ttf
kotxt2epub에서 정상적으로 폰트를 읽어 오는것을 보면 맡는거
같은데.
막상 완성해 놓고 보면 ???로 보입니다.
어디가 문제일까요?? 도와 주세요.
Original issue reported on code.google.com by [email protected]
on 11 Nov 2011 at 1:03
Attachments:
좋은 프로그램을 만들어 주셔서 감사합니다^^
잘 돌아 갑니다.
처음에 이 프로그램을 윈도우에서 돌렸을때 [TOC]가 안먹어서
리눅스에서 설치하고는 로그 확인하고 어떻게 어떻게 되어서 잘 되었습니다.
(윈도우에서 로그창이라도 띄워줬으면 하는 바람이^^)
또 윈도우에서는 pdf 까지 잘 나왔는데
리눅스에서는 아래와 같은 로그가 나와서 pdf는 굳이 필요성을 못 느껴서 그냥 포기했습니다..
최고의 프로그램입니다^^//
****************************************************
IMPORT ERROR!
Reportlab Version 2.1+ is needed!
****************************************************
The following Python packages are required for PISA:
- Reportlab Toolkit >= 2.2 <http://www.reportlab.org/>
- HTML5lib >= 0.11.1 <http://code.google.com/p/html5lib/>
Optional packages:
- pyPDF <http://pybrary.net/pyPdf/>
- PIL <http://www.pythonware.com/products/pil/>
No handlers could be found for logger "sx.pisa3"
Traceback (most recent call last):
File "/home/fehead/git/epubia/gui.py", line 300, in runConvert
from markdown2pdf import markdown2pdf
File "/home/fehead/git/epubia/markdown2pdf.py", line 3, in <module>
import ho.pisa as pisa
File "/usr/lib/pymodules/python2.7/ho/pisa/__init__.py", line 16, in <module>
from sx.pisa3.pisa import *
File "/usr/lib/pymodules/python2.7/sx/pisa3/__init__.py", line 31, in <module>
from pisa import *
File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa.py", line 21, in <module>
from pisa_document import *
File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_document.py", line 11, in <module>
from pisa_context import pisaContext
File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_context.py", line 11, in <module>
from pisa_util import *
File "/usr/lib/pymodules/python2.7/sx/pisa3/pisa_util.py", line 44, in <module>
raise ImportError("Reportlab Version 2.1+ is needed!")
ImportError: Reportlab Version 2.1+ is needed!
제가 설정 파일 수정을 거의 안해보아서...^^;;
저의 실수를 찾지 못했네요.
nook color의 css 파일에서 수정을 했기에...
body p div { font-family: eb_normal; }
h1 h2 h3 { font-family: eb_bold; }
div.booktitle { font-family: eb_bold; }
div.bookauthor { font-family: eb_bold; }
위 부분을 하나하나 폰트 페밀리 지정해주니 되네용...
정말 좋은 프로그램 만들러 주신것에 대해 감사드립니다.
지금도 정말 만족하지만 드레그해서 열기 기능을 추가
해주실수 있으신지요??
Original issue reported on code.google.com by [email protected]
on 17 Nov 2011 at 4:36
Attachments:
안녕하세요^^ 이북카페 명왕사신입니다
다름이 아니오라 개발하신 프로그램으로 변환하려고 하는데
변환이 안되는군요
파일을 읽고 정보얻고 변환누르면 멈추네요..
참고로 제 컴퓨터 원도우7 64비트 쓰고 있습니다~
Original issue reported on code.google.com by [email protected]
on 9 Jan 2011 at 5:53
Attachments:
안녕하세요.
좋은 프로그램인데 몇몇 버그로 사용이 어려워서 조금 고쳐
보았습니다.
* 커버 이미지 경로를 표시하는 필드 추가.
* "책정보읽기" 할 때, 파일명 만으로 검색하도록 변경.
* epub 제작중, 커버 이미지가 없으면, 예외가 발생하면서
멈추는 문제.
* 마지막 검색 결과가 남아서, 다음 검색 결과에 반영되는
문제.
* naver 커버 이미지 없을 때, 예외가 발생하면서 멈추는 문제.
전 액티브파이썬은 둘째치고, 파이썬도 처음 해서, 제대로
한 것인지 잘 모르겠습니다만,
여러 번 테스트 해 봤는데 별 문제는 없는 것 같습니다.
계속 작업 하시는 지 모르겠어서, 이슈로 올려 드립니다.
좋은 프로그램인데, 업데이트가 없어서 아쉽네요.
Original issue reported on code.google.com by [email protected]
on 10 Mar 2013 at 12:35
Attachments:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.