修复格式和编码问题
- 修复<>分隔符周围的空行问题 - 添加UTF-8 BOM标记与示例文件保持一致 - 解决特殊字符和编码显示问题 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
4628be0343
commit
54822bd943
56
CH-875.txt
Normal file
56
CH-875.txt
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
title:Wiener Beitr?ge zur Kunst und Kulturgeschichte Asiens. Wien, 1926-1937. V.1-11.
|
||||||
|
Other titles:Wiener Beitr?ge zur Kunst und Kulturgeschichte Asiens. Wien, 1926-1937. V.1-11.[1]
|
||||||
|
Volume:¾íÆÚ£¨µÚ1¾íÆÚ£©
|
||||||
|
ISBN:
|
||||||
|
creator:
|
||||||
|
contributor:
|
||||||
|
issuedDate:1926
|
||||||
|
publisher:KRYSTALL-VERLAG
|
||||||
|
place:WIEN
|
||||||
|
Classification number:CH-875
|
||||||
|
page:39
|
||||||
|
tableOfContents:
|
||||||
|
Cover---------------1<br/>
|
||||||
|
Title---------------1<br/>
|
||||||
|
INHALT---------------2<br/>
|
||||||
|
ARTHUR VON ROSTHORN, Die altchinesischen Bronzen I---------------4<br/>
|
||||||
|
ARTHUR VON ROSTHORN, Die altchinesischen Bronzen II---------------12<br/>
|
||||||
|
VIKTOR CHRISTIAN, Die Beziehungen der altmesopotamischen Kunst zum Osten---------------21<br/>
|
||||||
|
ERNST DIEZ, Zwei unbekannte Werke der indischen Plastik im Ethnographischen Museum in Wien---------------34<br/>
|
||||||
|
HEINRICH GL¨¹CK, Die Bedeutung der Nomaden f¨¹r die asiatischen Kunstkreise (Auszug)---------------37<br/>
|
||||||
|
JAHRESBERICHT---------------38<br/>
|
||||||
|
subject:Kunstreise Bedeutung Werke
|
||||||
|
date:1924-1926
|
||||||
|
spatial:
|
||||||
|
Other ISBN:
|
||||||
|
Other time:1925 ,1926 ,1924
|
||||||
|
url:http://www.cashl.edu.cn/cashlsearch/ill
|
||||||
|
|
||||||
|
<>
|
||||||
|
|
||||||
|
title:Wiener Beitr?ge zur Kunst und Kulturgeschichte Asiens. Wien, 1926-1937. V.1-11.
|
||||||
|
Other titles:Wiener Beitr?ge zur Kunst und Kulturgeschichte Asiens. Wien, 1926-1937. V.1-11.[2]
|
||||||
|
Volume:¾íÆÚ£¨µÚ2¾íÆÚ£©
|
||||||
|
ISBN:
|
||||||
|
creator:
|
||||||
|
contributor:
|
||||||
|
issuedDate:1927
|
||||||
|
publisher:KRYSTALL-VERLAG
|
||||||
|
place:WIEN
|
||||||
|
Classification number:CH-875
|
||||||
|
page:44
|
||||||
|
tableOfContents:
|
||||||
|
Cover---------------1<br/>
|
||||||
|
Title---------------1<br/>
|
||||||
|
INHALT---------------2<br/>
|
||||||
|
HEINRICH GL¨¹CK, Die Weltstellung der T¨¹rken in der Kunst---------------3<br/>
|
||||||
|
MELANIE STIASSNY, Neuerwerbungen chinesischer Plastik in der Ethnographischen Sammlung des Naturhistorischen Staatsmuseums in Wien---------------22<br/>
|
||||||
|
HANS REBEL, China als Ursprungsland der Edelseide---------------30<br/>
|
||||||
|
JAHRESBERICHT---------------40<br/>
|
||||||
|
MITGLIEDERVERZEICHNIS---------------42<br/>
|
||||||
|
subject:Edelseide Plastik Neuerwerbungen
|
||||||
|
date:720-1926
|
||||||
|
spatial:China
|
||||||
|
Other ISBN:ÆäËûISBNºÅ£¨setºÅ£©
|
||||||
|
Other time:1917, 1920 ,1925, 1765 ,1122 ,770, 720, 1926
|
||||||
|
url:http://www.cashl.edu.cn/cashlsearch/ill
|
||||||
@ -63,9 +63,8 @@ namespace SlideCombine
|
|||||||
|
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
{
|
{
|
||||||
// 在不同文档内容之间用"<>"分隔
|
// 在不同文档内容之间用"<>"分隔,不添加空行
|
||||||
combined.AppendLine();
|
combined.Append("<>");
|
||||||
combined.AppendLine("<>");
|
|
||||||
combined.AppendLine();
|
combined.AppendLine();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -251,8 +251,16 @@ namespace SlideCombine
|
|||||||
var outputFileName = $"{result.BaseFileName}.txt";
|
var outputFileName = $"{result.BaseFileName}.txt";
|
||||||
var outputFilePath = Path.Combine(outputPath, outputFileName);
|
var outputFilePath = Path.Combine(outputPath, outputFileName);
|
||||||
|
|
||||||
// 使用ANSI编码保存 (Encoding.Default)
|
// 添加BOM标记并使用ANSI编码保存
|
||||||
File.WriteAllText(outputFilePath, result.OutputContent, Encoding.Default);
|
var bom = Encoding.UTF8.GetPreamble();
|
||||||
|
var content = Encoding.Default.GetBytes(result.OutputContent);
|
||||||
|
|
||||||
|
using (var fs = new FileStream(outputFilePath, FileMode.Create))
|
||||||
|
{
|
||||||
|
// 写入UTF-8的BOM(与示例文件一致)
|
||||||
|
fs.Write(bom, 0, bom.Length);
|
||||||
|
fs.Write(content, 0, content.Length);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user