Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jixudong
jiaoyou_doc
Commits
3ecdded7
Commit
3ecdded7
authored
Nov 24, 2021
by
zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周磊杰提交
parent
d2fce2d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
剧本.txt
dramaeditor/剧本.txt
+44
-0
No files found.
dramaeditor/剧本.txt
0 → 100644
View file @
3ecdded7
1:比较复杂的导入txt文本 work/importTxt
1:比较复杂的导入txt文本 work/importTxt
(1)异步写入,提供另一个接口,给出进度百分比或者给出提示
(2):先检测文本中的编码格式,然后在转换成utf-8格式,
(3)根据 { 切割 ,切割后,程序分为两部分,前半部分是检测,如果文本中有错误的地方就给提示,后半部分是写入数据;
检测和写入数据分为六种情况
1:{1-2} 【旁白】11111111【旁白】fafaf(1-7)
2:{1-2} 【旁白】11111111【旁白】fafaf <菜式太少了>
3:{1-2} 【旁白】11111111【旁白】fafaf(1-7)<菜式太少了>
4:{1-2} 【旁白】11111111【旁白】fafaf
5:{1-3} 【旁白】1111111133333 [1-1-1] 333333333333333
6:{1-3} 【旁白】1111111133333 [1-1-1] 333333333333333 <法法;>
{}为剧情点内容,()为合并剧情点,[]为分支内容,必须满足格式要求,文本不能包含同样的剧情点 ,合并剧情只能有一个,并且()是中文的 ;
<> 为评论内容,只能有一个评论,自己评论自己
文本内容格式如下
{1-1}【旁白】你的手机突然接到一个神秘电话。
【雷蒙】谢天谢地,终于有信号了!听我说,我乘坐的航班坠机到了海平面上,我于慌乱之中拨错了电话,打到了您手机上,因为手机电量问题,我没办法再联系别人,您能帮助我吗?
[1-21111]可以|我会帮你的|帮帮你吧|你说吧
[1-3]我不能帮你|不帮|没兴趣,没时间|你打给别人吧|你找别人吧
[1-4]怎么帮|需要我做什么|遇到什么事情了|发生什么了
[1-5]你在哪里|你在什么位置|告诉我你的位置
[1-6]你报警吧|帮你报警好吗
[1-7]你是谁|你的名字是什么|你叫什么|你什么身份|你是骗子吧|是不是坏人
[1-8]周围有其他人吗|有其他幸存者吗
[1-9]有救生衣吗|找找其他幸存者|去找救生衣
[1-10]为什么找我|为什么打给我
[1-11]兜底跳转
{1-4}【雷蒙】请您耐心点听我说。(1-12)
{1-5}【雷蒙】我的周围都是海面,现在是白天,没有星星可以给我参考,其他的方法我也都试过了,您可以帮帮我吗?
【旁白】你思考片刻,决定帮助这个可怜人。(1-12)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment