feat: accent and dieresi characters properly detected

This commit is contained in:
Gerard Gascón 2024-04-16 21:07:56 +02:00
parent 6b289eecfd
commit ea6745e30d
5 changed files with 14 additions and 2 deletions

View file

@ -22,6 +22,7 @@ namespace Domain {
_readers.Add(new AObertaReader(_history)); _readers.Add(new AObertaReader(_history));
_readers.Add(new EObertaReader(_history)); _readers.Add(new EObertaReader(_history));
_readers.Add(new OObertaReader(_history)); _readers.Add(new OObertaReader(_history));
_readers.Add(new IDieresiReader(_history));
} }
public void UpdateInput() { public void UpdateInput() {

View file

@ -3,6 +3,6 @@ using System.Linq;
namespace Domain.Input { namespace Domain.Input {
public class EObertaReader : SequentialInputReader { public class EObertaReader : SequentialInputReader {
public EObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x45 }) { } public EObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x45 }, 0x10, false) { }
} }
} }

View file

@ -0,0 +1,8 @@
using System.Collections.Generic;
using System.Linq;
namespace Domain.Input {
public class IDieresiReader : SequentialInputReader {
public IDieresiReader(KeyHistory history) : base(history, new List<int>{ 0xDE, 0x49 }, 0x10, true) { }
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 2a92ca1acc52425f8505b204a7ebc772
timeCreated: 1713294175

View file

@ -3,6 +3,6 @@ using System.Linq;
namespace Domain.Input { namespace Domain.Input {
public class OObertaReader : SequentialInputReader { public class OObertaReader : SequentialInputReader {
public OObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x4F }) { } public OObertaReader(KeyHistory history) : base(history, new List<int>{ 0xBA, 0x4F }, 0x10, false) { }
} }
} }