Itinerary DOCX Template Filler
Fill a Chinese travel-agency template DOCX from simplified itinerary lines, while preserving template style.
Workflow
- Save user simplified content into a UTF-8
.txtfile (one day per line). - Run
scripts/fill_from_simplified.pywith:--templatesource template docx--contentsimplified txt--outputoutput docx
- Send resulting
.docxback to user.
Simplified input format
One line per day:
1南宁接 三街两巷 中山路小吃街 住南宁丽呈瑞轩酒店(会展店)2明仕田园 太平古城 住崇左维纳斯度假酒店3德天瀑布 蓝洞咖啡 住龙州观堂酒店
Rules:
- Leading number = day number.
住...segment = hotel.- Remaining tokens after day head are scenic spots.
Notes
- Keep template clauses/terms unchanged; replace only itinerary-related paragraphs.
- If
python-docxis missing, install viapython -m pip install python-docx. - This script is tuned for the user's current template layout and paragraph anchors.