Add PB type
This commit is contained in:
parent
5a57469f1c
commit
4f29b5c778
@ -22,7 +22,7 @@ namespace Txt2Bib.Records
|
|||||||
a = a.Trim();
|
a = a.Trim();
|
||||||
var s = a.Split(' ');
|
var s = a.Split(' ');
|
||||||
return s.Length > 1 ?
|
return s.Length > 1 ?
|
||||||
$"{s[1]} {s[0][0]}{s[0][1..].ToLowerInvariant()}" : a;
|
$"{s[1]} {s[0][0]}{s[0][1..].ToLower()}" : a;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected string CreatePages(string pages)
|
protected string CreatePages(string pages)
|
||||||
|
@ -15,7 +15,7 @@ namespace Txt2Bib
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Text2Bib
|
public class Text2Bib
|
||||||
{
|
{
|
||||||
private readonly string[] _citTypes = { "J", "B", "C", "P" };
|
private readonly string[] _citTypes = { "J", "B", "C", "P", "PB" };
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generate single .bib file from input text files
|
/// Generate single .bib file from input text files
|
||||||
@ -85,6 +85,7 @@ namespace Txt2Bib
|
|||||||
{
|
{
|
||||||
"J" => new Article().Convert(lines),
|
"J" => new Article().Convert(lines),
|
||||||
"B" => new Book().Convert(lines),
|
"B" => new Book().Convert(lines),
|
||||||
|
"PB" => new Book().Convert(lines),
|
||||||
"C" => new Chapter().Convert(lines),
|
"C" => new Chapter().Convert(lines),
|
||||||
"P" => new Proceedings().Convert(lines),
|
"P" => new Proceedings().Convert(lines),
|
||||||
_ => ""
|
_ => ""
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<TargetFramework>net6.0-windows</TargetFramework>
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<Version>0.1.9</Version>
|
<Version>0.2.0</Version>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
Loading…
Reference in New Issue
Block a user