Initial commit: Turing Machine Simulator (Blazor WebAssembly)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
c9af583414
|
|
@ -0,0 +1,70 @@
|
|||
# ==========================================
|
||||
# .NET Build Artifacts
|
||||
# ==========================================
|
||||
[Bb]in/
|
||||
[Oo]bj/
|
||||
[Ll]og/
|
||||
[Ll]ogs/
|
||||
publish/
|
||||
artifacts/
|
||||
|
||||
# ==========================================
|
||||
# Visual Studio
|
||||
# ==========================================
|
||||
.vs/
|
||||
*.rsuser
|
||||
*.user
|
||||
*.userosscache
|
||||
*.sln.docstates
|
||||
*.suo
|
||||
*.userprefs
|
||||
|
||||
# ==========================================
|
||||
# NuGet
|
||||
# ==========================================
|
||||
*.nupkg
|
||||
*.snupkg
|
||||
project.lock.json
|
||||
project.fragment.lock.json
|
||||
**/[Pp]ackages/
|
||||
!**/[Pp]ackages/build/
|
||||
*.nuget.props
|
||||
*.nuget.targets
|
||||
|
||||
# ==========================================
|
||||
# ASP.NET Core
|
||||
# ==========================================
|
||||
# 로컬 전용 환경별 설정 파일 (DB 연결 문자열, 시크릿 등)
|
||||
appsettings.*.local.json
|
||||
secrets.json
|
||||
.secrets/
|
||||
|
||||
# ==========================================
|
||||
# 도구 설정 디렉토리
|
||||
# ==========================================
|
||||
.vscode/
|
||||
.claude/
|
||||
.agent/
|
||||
|
||||
# ==========================================
|
||||
# OS 생성 파일
|
||||
# ==========================================
|
||||
# Windows
|
||||
Thumbs.db
|
||||
Thumbs.db:encryptable
|
||||
ehthumbs.db
|
||||
ehthumbs_vista.db
|
||||
desktop.ini
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# ==========================================
|
||||
# 환경 변수 / 시크릿
|
||||
# ==========================================
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
|
|
@ -0,0 +1,95 @@
|
|||
# 정지 문제(Halting Problem)의 증명
|
||||
|
||||
## 1. 정지 문제란 무엇인가?
|
||||
정지 문제(Halting Problem)는 앨런 튜링이 1936년 증명한 것으로, 다음과 같은 질문입니다.
|
||||
|
||||
> **"어떤 컴퓨터 프로그램과 그 프로그램에 줄 입력값이 주어졌을 때, 이 프로그램이 영원히 실행될지 아니면 언젠가 멈출지를 판별할 수 있는 만능 알고리즘이 존재하는가?"**
|
||||
|
||||
튜링은 **"그런 알고리즘은 존재할 수 없다"**는 것을 귀류법(Proof by Contradiction)을 통해 증명했습니다.
|
||||
|
||||
## 2. 증명 과정 (귀류법)
|
||||
|
||||
### 가정도입
|
||||
우선, 정지 문제를 완벽하게 해결할 수 있는 가상의 기계(함수)가 **존재한다고 가정**해 봅시다. 이 기계를 `H`라고 부르겠습니다.
|
||||
|
||||
기계 `H`는 두 개의 입력을 받습니다:
|
||||
1. 프로그램 코드 `P`
|
||||
2. 그 프로그램에 넣을 입력값 `I`
|
||||
|
||||
`H(P, I)`의 작동 방식:
|
||||
* 만약 `P`가 입력 `I`에 대해 실행되다가 멈춘다면(Halt) -> "멈춤(True)"을 출력.
|
||||
* 만약 `P`가 입력 `I`에 대해 영원히 실행된다면(Infinite Loop) -> "안 멈춤(False)"을 출력.
|
||||
|
||||
즉, `H`는 어떤 프로그램이든 멈추는지 안 멈추는지 정확히 판별합니다.
|
||||
|
||||
### 모순을 일으키는 기계 'D' 제작
|
||||
이제 `H`를 이용해서, 자신을 입력으로 받아 기괴하게 행동하는 새로운 기계(프로그램) `D`를 만듭니다.
|
||||
|
||||
기계 `D`는 하나의 입력(프로그램 코드 `P`)만 받습니다. 그리고 내부적으로 `H(P, P)`를 실행하여 결과를 확인합니다.
|
||||
|
||||
`D(P)`의 작동 알고리즘:
|
||||
1. `H(P, P)`를 실행합니다. (즉, 프로그램 `P`에 자기 자신인 `P`를 입력으로 줬을 때 멈추는지 확인합니다.)
|
||||
2. 만약 `H(P, P)`가 "멈춤"이라고 답하면 -> `D`는 무한 루프에 빠집니다 (영원히 실행).
|
||||
3. 만약 `H(P, P)`가 "안 멈춤"이라고 답하면 -> `D`는 바로 멈춥니다.
|
||||
|
||||
즉, `D`는 `H`의 예측과 반대로 행동하도록 설계되었습니다.
|
||||
|
||||
### 결정적 모순 (The Paradox)
|
||||
이제 결정적인 질문을 던집니다.
|
||||
|
||||
> **"기계 `D`에 자기 자신인 `D`를 입력으로 주면 (`D(D)`를 실행하면) 어떻게 될까?"**
|
||||
|
||||
이 경우 `H(D, D)`가 판별을 시도합니다.
|
||||
|
||||
**경우 1: `H(D, D)`가 "멈춤"이라고 판별한다면?**
|
||||
* `H`는 `D`가 멈출 것이라고 예측했습니다.
|
||||
* 하지만 `D`의 설계(알고리즘 2번)에 따라, `H`가 "멈춤"이라고 하면 `D`는 **무한 루프(안 멈춤)**에 빠집니다.
|
||||
* 모순 발생: `H`는 멈춘다고 했지만, 실제 `D`는 안 멈춥니다. (`H`가 틀림)
|
||||
|
||||
**경우 2: `H(D, D)`가 "안 멈춤"이라고 판별한다면?**
|
||||
* `H`는 `D`가 안 멈출 것이라고 예측했습니다.
|
||||
* 하지만 `D`의 설계(알고리즘 3번)에 따라, `H`가 "안 멈춤"이라고 하면 `D`는 **바로 멈춥니다.**
|
||||
* 모순 발생: `H`는 안 멈춘다고 했지만, 실제 `D`는 멈춥니다. (`H`가 틀림)
|
||||
|
||||
## 3. 코드 예시 (Pseudo-code)
|
||||
증명 과정을 이해하기 쉽도록 파이썬 스타일의 의사 코드로 표현해 보겠습니다.
|
||||
|
||||
```python
|
||||
# 가상의 만능 판별 함수 H
|
||||
def H(program, input_data):
|
||||
if program(input_data) stops:
|
||||
return True # 멈춤
|
||||
else:
|
||||
return False # 안 멈춤 (무한 루프)
|
||||
|
||||
# 모순을 만들기 위해 설계된 기계 D
|
||||
def D(P):
|
||||
# 1. 프로그램 P를 자기 자신(P)에게 입력으로 줬을 때의 결과를 H에게 물어봄
|
||||
result = H(P, P)
|
||||
|
||||
# 2. H의 결과와 정반대로 행동함
|
||||
if result == True: # H가 "P는 멈춘다"고 하면
|
||||
while True: # D는 일부러 무한 루프를 돕니다.
|
||||
pass
|
||||
else: # H가 "P는 안 멈춘다"고 하면
|
||||
return # D는 바로 멈춥니다.
|
||||
```
|
||||
|
||||
이제 `D(D)`를 실행하는 상황을 코드로 보면 모순이 명확해집니다.
|
||||
|
||||
```python
|
||||
# D(D) 실행 시 벌어지는 일 (= Paradox)
|
||||
def D(D):
|
||||
result = H(D, D) # H에게 D가 D를 입력받으면 멈추는지 물어봄
|
||||
|
||||
if result == True: # H가 "멈출 거야"라고 예측했다면
|
||||
while True: # 실제 D는 무한 루프에 빠짐 (H의 예측 틀림!)
|
||||
pass
|
||||
else: # H가 "안 멈출 거야"라고 예측했다면
|
||||
return # 실제 D는 바로 멈춤 (H의 예측 틀림!)
|
||||
```
|
||||
|
||||
## 4. 결론
|
||||
어떤 경우(멈춤 또는 안 멈춤)를 가정하더라도, 기계 `H`의 판별은 항상 틀리게 됩니다.
|
||||
|
||||
따라서 "모든 프로그램의 정지 여부를 판별할 수 있는 만능 기계 `H`는 존재할 수 없다"는 결론에 도달합니다. 이것이 정지 문제가 '결정 불가능(Undecidable)'하다는 튜링의 증명입니다.
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
# 앨런 튜링과 튜링 머신의 탄생 배경
|
||||
|
||||
## 1. 서론
|
||||
현재 우리가 사용하는 컴퓨터의 이론적 시초가 된 **튜링 머신(Turing Machine)**은 1936년 앨런 튜링(Alan Turing)이 발표한 논문 《계산 가능한 수와 결정 문제에 대한 응용 (On Computable Numbers, with an Application to the Entscheidungsproblem)》에서 처음 등장했습니다. 튜링이 이 개념을 고안하게 된 배경에는 당시 수학계의 거대한 난제였던 **'결정 문제(Entscheidungsproblem)'**가 있었습니다.
|
||||
|
||||
## 2. 힐베르트의 도전: 결정 문제 (Entscheidungsproblem)
|
||||
1928년, 독일의 위대한 수학자 **다비트 힐베르트(David Hilbert)**는 국제 수학자 대회에서 다음과 같은 심오한 질문을 던졌습니다.
|
||||
|
||||
> **"수학의 어떤 명제가 주어졌을 때, 그 명제의 참과 거짓을 판별할 수 있는 명확한 절차(알고리즘)가 존재하는가?"**
|
||||
|
||||
이것이 바로 **결정 문제**입니다. 힐베르트는 수학이 완전하고, 모순이 없으며, 모든 것을 증명할 수 있는 결정 가능한 체계이기를 꿈꿨습니다. 만약 이 기계적인 절차를 찾을 수 있다면, 수학의 모든 난제를 해결할 수 있는 '만능 기계'를 만들 수 있다는 희망이 있었기 때문입니다.
|
||||
|
||||
## 3. 튜링의 통찰: "계산이란 무엇인가?"
|
||||
앨런 튜링은 이 결정 문제를 해결하기 위해 먼저 **"계산한다(computing)"**는 행위가 무엇인지 정의해야 했습니다. 당시 '컴퓨터'라는 단어는 기계가 아니라 복잡한 수식을 계산하는 **사람(직업)**을 의미했습니다.
|
||||
|
||||
튜링은 사람이 계산하는 과정을 단순화하여 분석했습니다.
|
||||
1. 종이에 기호를 쓴다.
|
||||
2. 기호를 지우거나 고친다.
|
||||
3. 규칙에 따라 다음 단계로 넘어간다.
|
||||
|
||||
그는 이 과정을 수행할 수 있는 가상의 기계를 구상했는데, 이것이 바로 **튜링 머신**입니다. 튜링 머신은 다음과 같은 단순한 구조를 가집니다.
|
||||
* **테이프(Tape):** 무한히 긴 종이 띠 (메모리)
|
||||
* **헤드(Head):** 테이프의 칸을 읽고 쓰며 이동하는 장치
|
||||
* **상태 기록기(State Register):** 현재 기계의 상태를 기억
|
||||
* **행동 표(Action Table):** 특정 상태에서 특정 기호를 읽었을 때 무엇을 할지 적힌 규칙표 (프로그램)
|
||||
|
||||
## 4. 결정 문제의 해결과 튜링 머신의 의의
|
||||
튜링은 이 가상의 기계를 통해 놀라운 사실을 증명했습니다.
|
||||
|
||||
1. **범용 튜링 머신(Universal Turing Machine):** 테이프에 적힌 규칙(소프트웨어)만 바꾸면 어떤 계산이든 수행할 수 있는 기계의 개념을 제시했습니다. 이는 현대 컴퓨터의 **'프로그램 내장 방식'**의 원형이 되었습니다.
|
||||
2. **정지 문제(Halting Problem):** 튜링은 "어떤 프로그램이 영원히 실행될지, 아니면 언젠가 멈출지 판별하는 기계는 존재할 수 없다"는 것을 수학적으로 증명했습니다.
|
||||
3. **결론:** 정지 문제를 해결할 수 없으므로, 힐베르트가 제시한 **'결정 문제' 역시 풀 수 없다(부정적인 해답)**는 결론을 내렸습니다.
|
||||
|
||||
## 5. 결론: 현대 컴퓨터 과학의 시초
|
||||
비록 힐베르트의 꿈(모든 것을 증명하는 기계)은 불가능하다고 증명되었지만, 그 과정에서 앨런 튜링이 고안한 **튜링 머신**은 단순한 사고 실험을 넘어 현대 디지털 컴퓨터의 강력한 이론적 모델이 되었습니다. 오늘날 우리가 사용하는 스마트폰, PC, 슈퍼컴퓨터는 모두 본질적으로 튜링 머신의 구현체라고 할 수 있습니다.
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<Router AppAssembly="@typeof(App).Assembly">
|
||||
<Found Context="routeData">
|
||||
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||
</Found>
|
||||
<NotFound>
|
||||
<PageTitle>Not found</PageTitle>
|
||||
<LayoutView Layout="@typeof(MainLayout)">
|
||||
<p role="alert">Sorry, there's nothing at this address.</p>
|
||||
</LayoutView>
|
||||
</NotFound>
|
||||
</Router>
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
@implements IDisposable
|
||||
@inject LocalizationService Loc
|
||||
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" @onclick="OnStep" disabled="@IsRunning">@Loc["control.step"]</button>
|
||||
<button class="btn btn-success" @onclick="ToggleRun">@(IsRunning ? Loc["control.pause"] : Loc["control.run"])</button>
|
||||
<button class="btn btn-danger" @onclick="OnReset">@Loc["control.reset"]</button>
|
||||
|
||||
<div class="speed-control">
|
||||
<label>@Loc["control.speed"]: @Speed</label>
|
||||
<input type="range" min="50" max="1000" step="50" value="@Speed" @oninput="OnSpeedChange" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.controls {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
margin: 20px 0;
|
||||
}
|
||||
.speed-control {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
[Parameter] public EventCallback OnStep { get; set; }
|
||||
[Parameter] public EventCallback<bool> OnRunToggle { get; set; } // true = start, false = stop
|
||||
[Parameter] public EventCallback OnReset { get; set; }
|
||||
[Parameter] public bool IsRunning { get; set; }
|
||||
|
||||
[Parameter] public int Speed { get; set; } = 500;
|
||||
[Parameter] public EventCallback<int> SpeedChanged { get; set; }
|
||||
|
||||
private async Task OnSpeedChange(ChangeEventArgs e)
|
||||
{
|
||||
if (int.TryParse(e.Value?.ToString(), out int value))
|
||||
{
|
||||
Speed = value;
|
||||
await SpeedChanged.InvokeAsync(value);
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ToggleRun()
|
||||
{
|
||||
await OnRunToggle.InvokeAsync(!IsRunning);
|
||||
}
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Loc.OnLanguageChanged += OnLanguageChanged;
|
||||
}
|
||||
|
||||
private void OnLanguageChanged() => InvokeAsync(StateHasChanged);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Loc.OnLanguageChanged -= OnLanguageChanged;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
@implements IDisposable
|
||||
@inject LocalizationService Loc
|
||||
|
||||
<div class="lang-selector">
|
||||
<button class="lang-current" @onclick="ToggleDropdown" title="@Loc["lang.select"]">
|
||||
<img src="@Loc.CurrentLanguageInfo.FlagIcon" alt="@Loc.CurrentLanguageInfo.DisplayName" class="lang-flag" />
|
||||
</button>
|
||||
|
||||
@if (isOpen)
|
||||
{
|
||||
<div class="lang-dropdown">
|
||||
@foreach (var lang in LocalizationService.AvailableLanguages)
|
||||
{
|
||||
<button class="lang-option @(lang.Code == Loc.CurrentLanguage ? "active" : "")"
|
||||
@onclick="() => SelectLanguage(lang.Code)">
|
||||
<img src="@lang.FlagIcon" alt="@lang.DisplayName" class="lang-flag" />
|
||||
<span>@lang.DisplayName</span>
|
||||
</button>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@if (isOpen)
|
||||
{
|
||||
<div class="lang-overlay" @onclick="CloseDropdown"></div>
|
||||
}
|
||||
|
||||
<style>
|
||||
.lang-selector {
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
right: 60px;
|
||||
z-index: 1001;
|
||||
}
|
||||
|
||||
.lang-current {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-color);
|
||||
background-color: var(--bg-secondary);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.lang-current:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.lang-flag {
|
||||
width: 20px;
|
||||
height: 15px;
|
||||
object-fit: cover;
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
.lang-dropdown {
|
||||
position: absolute;
|
||||
top: 42px;
|
||||
right: 0;
|
||||
background-color: var(--bg-secondary);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
||||
overflow: hidden;
|
||||
min-width: 140px;
|
||||
z-index: 1002;
|
||||
}
|
||||
|
||||
.lang-option {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
padding: 8px 12px;
|
||||
border: none;
|
||||
background: none;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
transition: background-color 0.15s;
|
||||
}
|
||||
|
||||
.lang-option:hover {
|
||||
background-color: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.lang-option.active {
|
||||
background-color: var(--table-active-bg);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.lang-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
private bool isOpen = false;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Loc.OnLanguageChanged += OnLanguageChanged;
|
||||
}
|
||||
|
||||
private void ToggleDropdown() => isOpen = !isOpen;
|
||||
private void CloseDropdown() => isOpen = false;
|
||||
|
||||
private async Task SelectLanguage(string code)
|
||||
{
|
||||
isOpen = false;
|
||||
await Loc.SetLanguageAsync(code);
|
||||
}
|
||||
|
||||
private void OnLanguageChanged() => InvokeAsync(StateHasChanged);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Loc.OnLanguageChanged -= OnLanguageChanged;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,142 @@
|
|||
@using TuringMachine.Core
|
||||
|
||||
<div class="tape-wrapper">
|
||||
<button class="scroll-btn" @onclick="ScrollLeft" disabled="@(ScrollOffset <= 0)">◀</button>
|
||||
|
||||
<div class="tape-container" @ref="tapeContainer">
|
||||
@for (int i = StartIndex; i <= EndIndex; i++)
|
||||
{
|
||||
var isHead = i == HeadPosition;
|
||||
<div class="tape-cell @(isHead ? "head" : "")" id="@($"cell-{i}")">
|
||||
<span class="cell-index">@i</span>
|
||||
<span class="cell-value">@Tape[i]</span>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
<button class="scroll-btn" @onclick="ScrollRight" disabled="@(ScrollOffset >= MaxScrollOffset)">▶</button>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.tape-wrapper {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 20px;
|
||||
background-color: var(--tape-bg);
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.scroll-btn {
|
||||
background-color: var(--button-bg);
|
||||
color: var(--button-text);
|
||||
border: none;
|
||||
padding: 10px 15px;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
font-size: 18px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.scroll-btn:hover:not(:disabled) {
|
||||
background-color: var(--button-hover-bg);
|
||||
}
|
||||
|
||||
.scroll-btn:disabled {
|
||||
opacity: 0.3;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.tape-container {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
overflow-x: scroll;
|
||||
flex: 1;
|
||||
padding: 10px 0;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: var(--border-color) var(--tape-bg);
|
||||
}
|
||||
|
||||
.tape-container::-webkit-scrollbar {
|
||||
height: 8px;
|
||||
}
|
||||
|
||||
.tape-container::-webkit-scrollbar-track {
|
||||
background: var(--tape-bg);
|
||||
}
|
||||
|
||||
.tape-container::-webkit-scrollbar-thumb {
|
||||
background: var(--border-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.tape-cell {
|
||||
min-width: 60px;
|
||||
height: 80px;
|
||||
border: 2px solid var(--tape-cell-border);
|
||||
background-color: var(--tape-cell-bg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 4px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.tape-cell.head {
|
||||
background-color: var(--tape-head-bg);
|
||||
border-color: var(--tape-head-border);
|
||||
border-width: 3px;
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
|
||||
}
|
||||
|
||||
.cell-index {
|
||||
font-size: 10px;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.cell-value {
|
||||
font-size: 24px;
|
||||
font-weight: bold;
|
||||
font-family: 'Courier New', monospace;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
[Parameter] public Tape Tape { get; set; } = new();
|
||||
[Parameter] public int HeadPosition { get; set; }
|
||||
|
||||
private ElementReference tapeContainer;
|
||||
private int ScrollOffset = 0;
|
||||
private const int CellsPerPage = 15;
|
||||
private const int Padding = 5;
|
||||
|
||||
private int TapeStart => Tape.MinIndex - Padding;
|
||||
private int TapeEnd => Tape.MaxIndex + Padding;
|
||||
private int StartIndex => TapeStart + ScrollOffset;
|
||||
private int EndIndex => Math.Min(StartIndex + CellsPerPage - 1, TapeEnd);
|
||||
private int MaxScrollOffset => Math.Max(0, TapeEnd - TapeStart - CellsPerPage + 1);
|
||||
|
||||
private void ScrollLeft()
|
||||
{
|
||||
ScrollOffset = Math.Max(0, ScrollOffset - CellsPerPage / 2);
|
||||
}
|
||||
|
||||
private void ScrollRight()
|
||||
{
|
||||
ScrollOffset = Math.Min(MaxScrollOffset, ScrollOffset + CellsPerPage / 2);
|
||||
}
|
||||
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
// Auto-center on head if it's outside visible range
|
||||
if (HeadPosition < StartIndex || HeadPosition > EndIndex)
|
||||
{
|
||||
ScrollOffset = Math.Max(0, HeadPosition - TapeStart - CellsPerPage / 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,59 @@
|
|||
@inject IJSRuntime JS
|
||||
@inject LocalizationService Loc
|
||||
|
||||
<button class="theme-toggle" @onclick="ToggleTheme" title="@Loc["theme.toggle"]">
|
||||
@(isDark ? "☀️" : "🌙")
|
||||
</button>
|
||||
|
||||
<style>
|
||||
.theme-toggle {
|
||||
position: fixed;
|
||||
top: 15px;
|
||||
right: 15px;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid var(--border-color);
|
||||
background-color: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s ease;
|
||||
z-index: 1000;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.theme-toggle:hover {
|
||||
transform: scale(1.1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.theme-toggle:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
private bool isDark = false;
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
// JavaScript에서 현재 테마 가져오기
|
||||
var theme = await JS.InvokeAsync<string>("getTheme");
|
||||
isDark = theme == "dark";
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private async Task ToggleTheme()
|
||||
{
|
||||
isDark = !isDark;
|
||||
var newTheme = isDark ? "dark" : "light";
|
||||
await JS.InvokeVoidAsync("setTheme", newTheme);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,147 @@
|
|||
@implements IDisposable
|
||||
@using TuringMachine.Core
|
||||
@inject IJSRuntime JS
|
||||
@inject LocalizationService Loc
|
||||
|
||||
<div class="transition-table" @ref="tableContainer">
|
||||
<h3>@Loc["label.actionTable"]</h3>
|
||||
<table class="table table-bordered table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-no">@Loc["table.no"]</th>
|
||||
<th class="col-state">@Loc["table.currentState"]</th>
|
||||
<th class="col-symbol">@Loc["table.read"]</th>
|
||||
<th class="col-state">@Loc["table.newState"]</th>
|
||||
<th class="col-symbol">@Loc["table.write"]</th>
|
||||
<th class="col-move">@Loc["table.move"]</th>
|
||||
<th class="col-comment">@Loc["table.comment"]</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@{
|
||||
int rowIndex = 0;
|
||||
}
|
||||
@foreach (var item in Transitions.Items)
|
||||
{
|
||||
var isActive = CurrentState == item.Key.State && (CurrentReadSymbol == item.Key.ReadSymbol);
|
||||
var rowId = $"row-{rowIndex}";
|
||||
rowIndex++;
|
||||
<tr class="@(isActive ? "active" : "")" id="@rowId">
|
||||
<td class="col-no">@rowIndex</td>
|
||||
<td class="col-state">@item.Key.State</td>
|
||||
<td class="col-symbol">@item.Key.ReadSymbol</td>
|
||||
<td class="col-state">@item.Value.NewState</td>
|
||||
<td class="col-symbol">@item.Value.WriteSymbol</td>
|
||||
<td class="col-move">@item.Value.MoveDirection</td>
|
||||
<td class="col-comment">@item.Value.Comment</td>
|
||||
</tr>
|
||||
if (isActive)
|
||||
{
|
||||
activeRowId = rowId;
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.transition-table {
|
||||
margin-top: 20px;
|
||||
height: 370px;
|
||||
overflow-y: auto;
|
||||
resize: vertical;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 4px;
|
||||
background-color: var(--bg-secondary);
|
||||
}
|
||||
|
||||
.transition-table h3 {
|
||||
padding: 10px;
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: bold;
|
||||
background-color: var(--bg-tertiary);
|
||||
color: var(--text-primary);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.transition-table table {
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
table-layout: auto;
|
||||
}
|
||||
|
||||
/* 컬럼 폭 설정 - 데이터 컬럼은 내용에 맞게 축소, 주석 컬럼은 나머지 공간 차지 */
|
||||
.col-no {
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-state {
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.col-symbol {
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-move {
|
||||
width: 1%;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.col-comment {
|
||||
width: 100%;
|
||||
word-wrap: break-word;
|
||||
overflow-wrap: break-word;
|
||||
white-space: normal;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.transition-table tbody tr {
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.transition-table tbody tr.active {
|
||||
background-color: var(--table-active-bg);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.transition-table tbody tr:hover {
|
||||
background-color: var(--bg-tertiary);
|
||||
}
|
||||
</style>
|
||||
|
||||
@code {
|
||||
[Parameter] public TransitionTable Transitions { get; set; } = new();
|
||||
[Parameter] public string CurrentState { get; set; } = string.Empty;
|
||||
[Parameter] public char CurrentReadSymbol { get; set; }
|
||||
|
||||
private ElementReference tableContainer;
|
||||
private string? activeRowId;
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Loc.OnLanguageChanged += OnLanguageChanged;
|
||||
}
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(activeRowId))
|
||||
{
|
||||
await JS.InvokeVoidAsync("scrollToElement", activeRowId);
|
||||
}
|
||||
}
|
||||
|
||||
private void OnLanguageChanged() => InvokeAsync(StateHasChanged);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Loc.OnLanguageChanged -= OnLanguageChanged;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,392 @@
|
|||
@page "/"
|
||||
@implements IDisposable
|
||||
@using System.Threading
|
||||
@using System.Net.Http.Json
|
||||
@inject HttpClient Http
|
||||
@inject LocalizationService Loc
|
||||
|
||||
<PageTitle>@Loc["app.title"]</PageTitle>
|
||||
|
||||
<div class="container">
|
||||
<h1 class="mb-4">@Loc["app.title"]</h1>
|
||||
|
||||
<!-- READ-ONLY SECTION (Top) -->
|
||||
<div class="card mb-4">
|
||||
<div class="card-header bg-light">
|
||||
<strong>@Loc["section.visualization"]</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="status-panel mb-3">
|
||||
<span class="badge bg-info text-dark me-2">@Loc["status.currentState"]: @Machine.CurrentState</span>
|
||||
<span class="badge bg-secondary me-2">@Loc["status.steps"]: @Steps</span>
|
||||
<span class="badge @(Machine.IsHalted ? "bg-danger" : "bg-success")">@Loc["status.status"]: @(Machine.IsHalted ? Loc["status.halted"] : Loc["status.ready"])</span>
|
||||
</div>
|
||||
|
||||
<TapeVisualizer Tape="@Machine.Tape" HeadPosition="@Machine.HeadPosition" />
|
||||
|
||||
<Controls
|
||||
OnStep="Step"
|
||||
OnRunToggle="ToggleRun"
|
||||
OnReset="Reset"
|
||||
IsRunning="@IsRunning"
|
||||
@bind-Speed="Speed" />
|
||||
|
||||
<TransitionTableVisualizer
|
||||
Transitions="@Machine.Transitions"
|
||||
CurrentState="@Machine.CurrentState"
|
||||
CurrentReadSymbol="@Machine.Tape[Machine.HeadPosition]" />
|
||||
|
||||
<div class="mt-2">
|
||||
<button class="btn btn-primary" @onclick="SetTape" disabled="@IsRunning">@Loc["button.loadConfig"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- EDITABLE SECTION (Bottom) -->
|
||||
<div class="card">
|
||||
<div class="card-header bg-warning text-dark">
|
||||
<strong>@Loc["section.config"]</strong>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
|
||||
<!-- Examples -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-bold">@Loc["label.examples"]</label>
|
||||
<div @attributes="InertWhenRunning">
|
||||
<select class="form-select @(IsRunning ? "input-disabled" : "")" value="@SelectedExampleIndex" @onchange="OnExampleChanged">
|
||||
<option value="-1">@Loc["option.none"]</option>
|
||||
@for (int i = 0; i < Examples.Count; i++)
|
||||
{
|
||||
<option value="@i">@(i + 1). @GetLocalizedText(Examples[i].Name)</option>
|
||||
}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<!-- Tape Configuration -->
|
||||
<div class="mb-4">
|
||||
<label class="form-label fw-bold">@Loc["label.tapeState"]</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-text">@Loc["label.tapeValue"]</span>
|
||||
<input type="text" class="form-control" @bind="TapeInput" placeholder="e.g. 1011" />
|
||||
<span class="input-group-text">@Loc["label.headIndex"]</span>
|
||||
<input type="number" class="form-control" @bind="HeadInput" style="max-width: 100px;" />
|
||||
<button class="btn btn-primary" @onclick="SetTape" disabled="@IsRunning">@Loc["button.applyTape"]</button>
|
||||
</div>
|
||||
<small class="text-muted">@Loc["hint.tape"]</small>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<!-- Action Table Configuration -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label fw-bold">@Loc["label.actionTable"]</label>
|
||||
<p class="text-muted small mb-1">@Loc["hint.format"] <code>@Loc["hint.csvFormat"]</code></p>
|
||||
<textarea class="form-control mb-2 font-monospace" rows="6" @bind="CsvRulesInput" placeholder="q0, 1, q0, 0, L"></textarea>
|
||||
|
||||
@if (!string.IsNullOrEmpty(RuleParseError))
|
||||
{
|
||||
<div class="alert alert-danger py-2">@RuleParseError</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private Machine Machine { get; set; } = new();
|
||||
private bool IsRunning { get; set; }
|
||||
private int Speed { get; set; } = 500;
|
||||
private int Steps { get; set; }
|
||||
private CancellationTokenSource? _cts;
|
||||
|
||||
// UI Bindings
|
||||
private string TapeInput { get; set; } = "";
|
||||
private int HeadInput { get; set; } = 0;
|
||||
|
||||
// CSV Rules
|
||||
private string CsvRulesInput { get; set; } = "";
|
||||
private string RuleParseError { get; set; } = "";
|
||||
|
||||
// Add inert attribute to block all interaction while running
|
||||
private Dictionary<string, object> InertWhenRunning =>
|
||||
IsRunning ? new Dictionary<string, object> { ["inert"] = "" } : new();
|
||||
|
||||
// Example list loaded from server
|
||||
private List<ExampleConfig> Examples { get; set; } = new();
|
||||
private int SelectedExampleIndex { get; set; } = 0;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
Loc.OnLanguageChanged += OnLanguageChanged;
|
||||
|
||||
// Load example list from server
|
||||
try
|
||||
{
|
||||
var examples = await Http.GetFromJsonAsync<List<ExampleConfig>>("api/examples");
|
||||
if (examples != null && examples.Count > 0)
|
||||
{
|
||||
Examples = examples;
|
||||
// Apply the first example as default
|
||||
ApplyExample(Examples[0]);
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
// Start with empty state if example loading fails
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Called when an example is selected from the ComboBox.
|
||||
/// </summary>
|
||||
private void OnExampleChanged(ChangeEventArgs e)
|
||||
{
|
||||
if (IsRunning) return;
|
||||
if (int.TryParse(e.Value?.ToString(), out int index))
|
||||
{
|
||||
SelectedExampleIndex = index;
|
||||
if (index >= 0 && index < Examples.Count)
|
||||
{
|
||||
ApplyExample(Examples[index]);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Clear all values when "None" is selected
|
||||
ClearConfiguration();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Resets all control values in the Configuration section.
|
||||
/// </summary>
|
||||
private void ClearConfiguration()
|
||||
{
|
||||
_cts?.Cancel();
|
||||
IsRunning = false;
|
||||
|
||||
TapeInput = "";
|
||||
HeadInput = 0;
|
||||
CsvRulesInput = "";
|
||||
RuleParseError = "";
|
||||
|
||||
Machine = new Machine();
|
||||
Steps = 0;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Applies an example configuration to the UI.
|
||||
/// </summary>
|
||||
private void ApplyExample(ExampleConfig example)
|
||||
{
|
||||
_cts?.Cancel();
|
||||
IsRunning = false;
|
||||
|
||||
TapeInput = example.TapeInput;
|
||||
HeadInput = example.HeadPosition;
|
||||
CsvRulesInput = BuildCsvFromActions(example.Actions);
|
||||
|
||||
LoadRules();
|
||||
SetTape();
|
||||
|
||||
Steps = 0;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the value matching the current language from a localized text list.
|
||||
/// </summary>
|
||||
private string GetLocalizedText(List<LocalizedText> texts)
|
||||
{
|
||||
return texts.FirstOrDefault(t => t.Language == Loc.CurrentLanguage)?.Value
|
||||
?? texts.FirstOrDefault()?.Value
|
||||
?? "";
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts the Actions array to a CSV string with comments in the current language.
|
||||
/// </summary>
|
||||
private string BuildCsvFromActions(List<ActionEntry> actions)
|
||||
{
|
||||
var lines = new List<string>();
|
||||
foreach (var action in actions)
|
||||
{
|
||||
var comment = GetLocalizedText(action.Comment);
|
||||
lines.Add(string.IsNullOrEmpty(comment)
|
||||
? action.Value
|
||||
: $"{action.Value}, {comment}");
|
||||
}
|
||||
return string.Join("\n", lines);
|
||||
}
|
||||
|
||||
private void LoadRules()
|
||||
{
|
||||
RuleParseError = "";
|
||||
var newTransitions = new List<(string, char, string, char, MoveDirection, string)>();
|
||||
var seenKeys = new Dictionary<(string, char), int>();
|
||||
var lines = CsvRulesInput.Split('\n', StringSplitOptions.RemoveEmptyEntries);
|
||||
int lineNum = 0;
|
||||
|
||||
foreach (var line in lines)
|
||||
{
|
||||
lineNum++;
|
||||
if (string.IsNullOrWhiteSpace(line)) continue;
|
||||
|
||||
var parts = line.Split(',', 6);
|
||||
if (parts.Length < 5 || parts.Length > 6)
|
||||
{
|
||||
RuleParseError = Loc["error.columnCount", lineNum, parts.Length];
|
||||
return;
|
||||
}
|
||||
|
||||
var state = parts[0].Trim();
|
||||
var readStr = parts[1].Trim();
|
||||
var newState = parts[2].Trim();
|
||||
var writeStr = parts[3].Trim();
|
||||
var moveStr = parts[4].Trim();
|
||||
|
||||
if (readStr.Length != 1)
|
||||
{
|
||||
RuleParseError = Loc["error.readSymbol", lineNum, readStr];
|
||||
return;
|
||||
}
|
||||
if (writeStr.Length != 1)
|
||||
{
|
||||
RuleParseError = Loc["error.writeSymbol", lineNum, writeStr];
|
||||
return;
|
||||
}
|
||||
|
||||
MoveDirection move;
|
||||
if (moveStr.Equals("L", StringComparison.OrdinalIgnoreCase) || moveStr.Equals("Left", StringComparison.OrdinalIgnoreCase))
|
||||
move = MoveDirection.Left;
|
||||
else if (moveStr.Equals("R", StringComparison.OrdinalIgnoreCase) || moveStr.Equals("Right", StringComparison.OrdinalIgnoreCase))
|
||||
move = MoveDirection.Right;
|
||||
else if (moveStr.Equals("S", StringComparison.OrdinalIgnoreCase) || moveStr.Equals("Stay", StringComparison.OrdinalIgnoreCase))
|
||||
move = MoveDirection.Stay;
|
||||
else
|
||||
{
|
||||
RuleParseError = Loc["error.moveDirection", lineNum, moveStr];
|
||||
return;
|
||||
}
|
||||
|
||||
// 6th column is an optional comment
|
||||
string comment = parts.Length > 5 ? parts[5].Trim() : "";
|
||||
|
||||
var key = (state, readStr[0]);
|
||||
if (seenKeys.TryGetValue(key, out int prevLine))
|
||||
{
|
||||
RuleParseError = Loc["error.duplicateKey", lineNum, state, readStr, prevLine];
|
||||
return;
|
||||
}
|
||||
seenKeys[key] = lineNum;
|
||||
|
||||
newTransitions.Add((state, readStr[0], newState, writeStr[0], move, comment));
|
||||
}
|
||||
|
||||
if (newTransitions.Count == 0)
|
||||
{
|
||||
RuleParseError = Loc["error.noRules"];
|
||||
return;
|
||||
}
|
||||
|
||||
// Assume initial state is the first state mentioned in the rules
|
||||
string initialState = newTransitions.First().Item1;
|
||||
|
||||
Machine.LoadProgram(initialState, newTransitions);
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void SetTape()
|
||||
{
|
||||
_cts?.Cancel();
|
||||
IsRunning = false;
|
||||
|
||||
// Also apply CSV rules
|
||||
LoadRules();
|
||||
|
||||
Machine.Reset();
|
||||
|
||||
// Apply initial tape values
|
||||
if (!string.IsNullOrEmpty(TapeInput))
|
||||
{
|
||||
for (int i = 0; i < TapeInput.Length; i++)
|
||||
{
|
||||
Machine.Tape[i] = TapeInput[i];
|
||||
}
|
||||
}
|
||||
|
||||
Machine.ForceHeadPosition(HeadInput);
|
||||
Steps = 0;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private void Step()
|
||||
{
|
||||
if (Machine.IsHalted) return;
|
||||
|
||||
Machine.Step();
|
||||
Steps++;
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async Task ToggleRun(bool shouldRun)
|
||||
{
|
||||
IsRunning = shouldRun;
|
||||
if (IsRunning)
|
||||
{
|
||||
_cts = new CancellationTokenSource();
|
||||
try
|
||||
{
|
||||
await RunLoop(_cts.Token);
|
||||
}
|
||||
catch (OperationCanceledException)
|
||||
{
|
||||
// Stopped
|
||||
}
|
||||
finally
|
||||
{
|
||||
IsRunning = false;
|
||||
_cts = null;
|
||||
StateHasChanged();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_cts?.Cancel();
|
||||
}
|
||||
}
|
||||
|
||||
private async Task RunLoop(CancellationToken token)
|
||||
{
|
||||
while (!token.IsCancellationRequested && !Machine.IsHalted)
|
||||
{
|
||||
Step();
|
||||
await Task.Delay(Speed, token);
|
||||
}
|
||||
}
|
||||
|
||||
private void Reset()
|
||||
{
|
||||
// Re-apply the current inputs to simulate a "Reset to Initial"
|
||||
SetTape();
|
||||
}
|
||||
|
||||
private void OnLanguageChanged()
|
||||
{
|
||||
// Rebuild comments in the new language if an example is selected
|
||||
if (SelectedExampleIndex >= 0 && SelectedExampleIndex < Examples.Count)
|
||||
{
|
||||
CsvRulesInput = BuildCsvFromActions(Examples[SelectedExampleIndex].Actions);
|
||||
}
|
||||
InvokeAsync(StateHasChanged);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Loc.OnLanguageChanged -= OnLanguageChanged;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using TuringMachine.Client;
|
||||
using TuringMachine.Client.Services;
|
||||
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
builder.Services.AddScoped<LocalizationService>();
|
||||
|
||||
var host = builder.Build();
|
||||
await host.Services.GetRequiredService<LocalizationService>().InitializeAsync();
|
||||
await host.RunAsync();
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
using System.Net.Http.Json;
|
||||
using Microsoft.JSInterop;
|
||||
|
||||
namespace TuringMachine.Client.Services;
|
||||
|
||||
public record LanguageInfo(string Code, string DisplayName, string FlagIcon);
|
||||
|
||||
public class LocalizationService
|
||||
{
|
||||
private readonly HttpClient _http;
|
||||
private readonly IJSRuntime _js;
|
||||
private Dictionary<string, string> _translations = new();
|
||||
|
||||
public static readonly List<LanguageInfo> AvailableLanguages = new()
|
||||
{
|
||||
new("en-US", "English", "img/flags/us.svg"),
|
||||
new("ko-KR", "한국어", "img/flags/kr.svg")
|
||||
};
|
||||
|
||||
public string CurrentLanguage { get; private set; } = "en-US";
|
||||
|
||||
public LanguageInfo CurrentLanguageInfo =>
|
||||
AvailableLanguages.Find(l => l.Code == CurrentLanguage) ?? AvailableLanguages[0];
|
||||
|
||||
public event Action? OnLanguageChanged;
|
||||
|
||||
public string this[string key] =>
|
||||
_translations.TryGetValue(key, out var value) ? value : key;
|
||||
|
||||
public string this[string key, params object[] args]
|
||||
{
|
||||
get
|
||||
{
|
||||
var template = this[key];
|
||||
try { return string.Format(template, args); }
|
||||
catch { return template; }
|
||||
}
|
||||
}
|
||||
|
||||
public LocalizationService(HttpClient http, IJSRuntime js)
|
||||
{
|
||||
_http = http;
|
||||
_js = js;
|
||||
}
|
||||
|
||||
public async Task InitializeAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
var saved = await _js.InvokeAsync<string?>("localStorage.getItem", "lang");
|
||||
CurrentLanguage = string.IsNullOrEmpty(saved) ? "en-US" : saved;
|
||||
}
|
||||
catch
|
||||
{
|
||||
CurrentLanguage = "en-US";
|
||||
}
|
||||
|
||||
await LoadTranslationsAsync(CurrentLanguage);
|
||||
}
|
||||
|
||||
public async Task SetLanguageAsync(string lang)
|
||||
{
|
||||
if (lang == CurrentLanguage) return;
|
||||
|
||||
CurrentLanguage = lang;
|
||||
await LoadTranslationsAsync(lang);
|
||||
|
||||
try
|
||||
{
|
||||
await _js.InvokeVoidAsync("localStorage.setItem", "lang", lang);
|
||||
await _js.InvokeVoidAsync("setDocumentTitle", this["app.title"]);
|
||||
}
|
||||
catch { }
|
||||
|
||||
OnLanguageChanged?.Invoke();
|
||||
}
|
||||
|
||||
private async Task LoadTranslationsAsync(string lang)
|
||||
{
|
||||
try
|
||||
{
|
||||
var dict = await _http.GetFromJsonAsync<Dictionary<string, string>>($"i18n/{lang}.json");
|
||||
_translations = dict ?? new();
|
||||
}
|
||||
catch
|
||||
{
|
||||
_translations = new();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
@inherits LayoutComponentBase
|
||||
|
||||
<div class="page">
|
||||
<main>
|
||||
<article class="content px-4">
|
||||
@Body
|
||||
</article>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<LanguageToggle />
|
||||
<ThemeToggle />
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
.page {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
main {
|
||||
flex: 1;
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="8.0.0" PrivateAssets="all" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Core\TuringMachine.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
@using System.Net.Http
|
||||
@using System.Net.Http.Json
|
||||
@using Microsoft.AspNetCore.Components.Forms
|
||||
@using Microsoft.AspNetCore.Components.Routing
|
||||
@using Microsoft.AspNetCore.Components.Web
|
||||
@using Microsoft.AspNetCore.Components.Web.Virtualization
|
||||
@using Microsoft.AspNetCore.Components.WebAssembly.Http
|
||||
@using Microsoft.JSInterop
|
||||
@using TuringMachine.Client
|
||||
@using TuringMachine.Client.Shared
|
||||
@using TuringMachine.Core
|
||||
@using TuringMachine.Client.Components
|
||||
@using TuringMachine.Client.Services
|
||||
|
|
@ -0,0 +1,256 @@
|
|||
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
|
||||
|
||||
/* CSS 변수 기반 테마 시스템 */
|
||||
:root {
|
||||
/* Light 모드 색상 */
|
||||
--bg-primary: #ffffff;
|
||||
--bg-secondary: #f8f9fa;
|
||||
--bg-tertiary: #e9ecef;
|
||||
--text-primary: #212529;
|
||||
--text-secondary: #6c757d;
|
||||
--text-muted: #adb5bd;
|
||||
--border-color: #dee2e6;
|
||||
--accent-primary: #007bff;
|
||||
--accent-hover: #0056b3;
|
||||
--success: #28a745;
|
||||
--danger: #dc3545;
|
||||
--warning: #ffc107;
|
||||
--info: #17a2b8;
|
||||
|
||||
/* 컴포넌트별 색상 */
|
||||
--tape-bg: #f0f0f0;
|
||||
--tape-cell-bg: #ffffff;
|
||||
--tape-cell-border: #cccccc;
|
||||
--tape-head-bg: #e7f1ff;
|
||||
--tape-head-border: #007bff;
|
||||
--table-active-bg: #cfe2ff;
|
||||
--button-bg: #007bff;
|
||||
--button-hover-bg: #0056b3;
|
||||
--button-text: #ffffff;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
/* Dark 모드 색상 */
|
||||
--bg-primary: #1a1a1a;
|
||||
--bg-secondary: #2d2d2d;
|
||||
--bg-tertiary: #3a3a3a;
|
||||
--text-primary: #e9ecef;
|
||||
--text-secondary: #adb5bd;
|
||||
--text-muted: #6c757d;
|
||||
--border-color: #495057;
|
||||
--accent-primary: #4a9eff;
|
||||
--accent-hover: #6eb3ff;
|
||||
--success: #4caf50;
|
||||
--danger: #f44336;
|
||||
--warning: #ffc107;
|
||||
--info: #29b6f6;
|
||||
|
||||
/* 컴포넌트별 색상 */
|
||||
--tape-bg: #2d2d2d;
|
||||
--tape-cell-bg: #3a3a3a;
|
||||
--tape-cell-border: #555555;
|
||||
--tape-head-bg: #1e3a5f;
|
||||
--tape-head-border: #4a9eff;
|
||||
--table-active-bg: #1e3a5f;
|
||||
--button-bg: #4a9eff;
|
||||
--button-hover-bg: #6eb3ff;
|
||||
--button-text: #ffffff;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
background-color: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
transition: background-color 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
|
||||
h1:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a,
|
||||
.btn-link {
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
a:hover,
|
||||
.btn-link:hover {
|
||||
color: var(--accent-hover);
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: var(--button-text);
|
||||
background-color: var(--button-bg);
|
||||
border-color: var(--button-bg);
|
||||
}
|
||||
|
||||
.btn-primary:hover {
|
||||
background-color: var(--button-hover-bg);
|
||||
border-color: var(--button-hover-bg);
|
||||
}
|
||||
|
||||
.btn:focus,
|
||||
.btn:active:focus,
|
||||
.btn-link.nav-link:focus,
|
||||
.form-control:focus,
|
||||
.form-check-input:focus {
|
||||
box-shadow: 0 0 0 0.1rem var(--bg-primary), 0 0 0 0.25rem var(--accent-primary);
|
||||
}
|
||||
|
||||
.content {
|
||||
padding-top: 1.1rem;
|
||||
}
|
||||
|
||||
.valid.modified:not([type=checkbox]) {
|
||||
outline: 1px solid var(--success);
|
||||
}
|
||||
|
||||
.invalid {
|
||||
outline: 1px solid var(--danger);
|
||||
}
|
||||
|
||||
.validation-message {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
#blazor-error-ui {
|
||||
background: var(--warning);
|
||||
bottom: 0;
|
||||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
||||
display: none;
|
||||
left: 0;
|
||||
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
#blazor-error-ui .dismiss {
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
right: 0.75rem;
|
||||
top: 0.5rem;
|
||||
}
|
||||
|
||||
.blazor-error-boundary {
|
||||
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
||||
padding: 1rem 1rem 1rem 3.7rem;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.blazor-error-boundary::after {
|
||||
content: "An error has occurred."
|
||||
}
|
||||
|
||||
.loading-progress {
|
||||
position: relative;
|
||||
display: block;
|
||||
width: 8rem;
|
||||
height: 8rem;
|
||||
margin: 20vh auto 1rem auto;
|
||||
}
|
||||
|
||||
.loading-progress circle {
|
||||
fill: none;
|
||||
stroke: var(--border-color);
|
||||
stroke-width: 0.6rem;
|
||||
transform-origin: 50% 50%;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.loading-progress circle:last-child {
|
||||
stroke: var(--accent-primary);
|
||||
stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
|
||||
transition: stroke-dasharray 0.05s ease-in-out;
|
||||
}
|
||||
|
||||
.loading-progress-text {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.loading-progress-text:after {
|
||||
content: var(--blazor-load-percentage-text, "Loading");
|
||||
}
|
||||
|
||||
/* Bootstrap 컴포넌트 테마 적용 */
|
||||
.card {
|
||||
background-color: var(--bg-secondary);
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.card-header {
|
||||
background-color: var(--bg-tertiary) !important;
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary) !important;
|
||||
}
|
||||
|
||||
.card-body {
|
||||
background-color: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.table {
|
||||
color: var(--text-primary);
|
||||
border-color: var(--border-color);
|
||||
}
|
||||
|
||||
.table thead th {
|
||||
background-color: var(--bg-tertiary);
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.table tbody td {
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.table-bordered {
|
||||
border-color: var(--border-color);
|
||||
}
|
||||
|
||||
.form-control,
|
||||
.form-select {
|
||||
background-color: var(--bg-secondary);
|
||||
border-color: var(--border-color);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.form-control:focus,
|
||||
.form-select:focus {
|
||||
background-color: var(--bg-secondary);
|
||||
border-color: var(--accent-primary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.form-control:disabled,
|
||||
.form-select:disabled {
|
||||
background-color: var(--bg-tertiary) !important;
|
||||
border-color: var(--border-color) !important;
|
||||
color: var(--text-secondary) !important;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.input-disabled {
|
||||
background-color: var(--bg-tertiary) !important;
|
||||
border-color: var(--border-color) !important;
|
||||
color: var(--text-secondary) !important;
|
||||
opacity: 0.7;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
textarea.form-control {
|
||||
background-color: var(--bg-secondary);
|
||||
color: var(--text-primary);
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,86 @@
|
|||
SIL OPEN FONT LICENSE Version 1.1
|
||||
|
||||
Copyright (c) 2014 Waybury
|
||||
|
||||
PREAMBLE
|
||||
The goals of the Open Font License (OFL) are to stimulate worldwide
|
||||
development of collaborative font projects, to support the font creation
|
||||
efforts of academic and linguistic communities, and to provide a free and
|
||||
open framework in which fonts may be shared and improved in partnership
|
||||
with others.
|
||||
|
||||
The OFL allows the licensed fonts to be used, studied, modified and
|
||||
redistributed freely as long as they are not sold by themselves. The
|
||||
fonts, including any derivative works, can be bundled, embedded,
|
||||
redistributed and/or sold with any software provided that any reserved
|
||||
names are not used by derivative works. The fonts and derivatives,
|
||||
however, cannot be released under any other type of license. The
|
||||
requirement for fonts to remain under this license does not apply
|
||||
to any document created using the fonts or their derivatives.
|
||||
|
||||
DEFINITIONS
|
||||
"Font Software" refers to the set of files released by the Copyright
|
||||
Holder(s) under this license and clearly marked as such. This may
|
||||
include source files, build scripts and documentation.
|
||||
|
||||
"Reserved Font Name" refers to any names specified as such after the
|
||||
copyright statement(s).
|
||||
|
||||
"Original Version" refers to the collection of Font Software components as
|
||||
distributed by the Copyright Holder(s).
|
||||
|
||||
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||
or substituting -- in part or in whole -- any of the components of the
|
||||
Original Version, by changing formats or by porting the Font Software to a
|
||||
new environment.
|
||||
|
||||
"Author" refers to any designer, engineer, programmer, technical
|
||||
writer or other person who contributed to the Font Software.
|
||||
|
||||
PERMISSION & CONDITIONS
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
||||
redistribute, and sell modified and unmodified copies of the Font
|
||||
Software, subject to the following conditions:
|
||||
|
||||
1) Neither the Font Software nor any of its individual components,
|
||||
in Original or Modified Versions, may be sold by itself.
|
||||
|
||||
2) Original or Modified Versions of the Font Software may be bundled,
|
||||
redistributed and/or sold with any software, provided that each copy
|
||||
contains the above copyright notice and this license. These can be
|
||||
included either as stand-alone text files, human-readable headers or
|
||||
in the appropriate machine-readable metadata fields within text or
|
||||
binary files as long as those fields can be easily viewed by the user.
|
||||
|
||||
3) No Modified Version of the Font Software may use the Reserved Font
|
||||
Name(s) unless explicit written permission is granted by the corresponding
|
||||
Copyright Holder. This restriction only applies to the primary font name as
|
||||
presented to the users.
|
||||
|
||||
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
||||
Software shall not be used to promote, endorse or advertise any
|
||||
Modified Version, except to acknowledge the contribution(s) of the
|
||||
Copyright Holder(s) and the Author(s) or with their explicit written
|
||||
permission.
|
||||
|
||||
5) The Font Software, modified or unmodified, in part or in whole,
|
||||
must be distributed entirely under this license, and must not be
|
||||
distributed under any other license. The requirement for fonts to
|
||||
remain under this license does not apply to any document created
|
||||
using the Font Software.
|
||||
|
||||
TERMINATION
|
||||
This license becomes null and void if any of the above conditions are
|
||||
not met.
|
||||
|
||||
DISCLAIMER
|
||||
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
||||
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
||||
OTHER DEALINGS IN THE FONT SOFTWARE.
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Waybury
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
[Open Iconic v1.1.1](https://github.com/iconic/open-iconic)
|
||||
===========
|
||||
|
||||
### Open Iconic is the open source sibling of [Iconic](https://github.com/iconic/open-iconic). It is a hyper-legible collection of 223 icons with a tiny footprint—ready to use with Bootstrap and Foundation. [View the collection](https://github.com/iconic/open-iconic)
|
||||
|
||||
|
||||
|
||||
## What's in Open Iconic?
|
||||
|
||||
* 223 icons designed to be legible down to 8 pixels
|
||||
* Super-light SVG files - 61.8 for the entire set
|
||||
* SVG sprite—the modern replacement for icon fonts
|
||||
* Webfont (EOT, OTF, SVG, TTF, WOFF), PNG and WebP formats
|
||||
* Webfont stylesheets (including versions for Bootstrap and Foundation) in CSS, LESS, SCSS and Stylus formats
|
||||
* PNG and WebP raster images in 8px, 16px, 24px, 32px, 48px and 64px.
|
||||
|
||||
|
||||
## Getting Started
|
||||
|
||||
#### For code samples and everything else you need to get started with Open Iconic, check out our [Icons](https://github.com/iconic/open-iconic) and [Reference](https://github.com/iconic/open-iconic) sections.
|
||||
|
||||
### General Usage
|
||||
|
||||
#### Using Open Iconic's SVGs
|
||||
|
||||
We like SVGs and we think they're the way to display icons on the web. Since Open Iconic are just basic SVGs, we suggest you display them like you would any other image (don't forget the `alt` attribute).
|
||||
|
||||
```
|
||||
<img src="/open-iconic/svg/icon-name.svg" alt="icon name">
|
||||
```
|
||||
|
||||
#### Using Open Iconic's SVG Sprite
|
||||
|
||||
Open Iconic also comes in a SVG sprite which allows you to display all the icons in the set with a single request. It's like an icon font, without being a hack.
|
||||
|
||||
Adding an icon from an SVG sprite is a little different than what you're used to, but it's still a piece of cake. *Tip: To make your icons easily style able, we suggest adding a general class to the* `<svg>` *tag and a unique class name for each different icon in the* `<use>` *tag.*
|
||||
|
||||
```
|
||||
<svg class="icon">
|
||||
<use xlink:href="open-iconic.svg#account-login" class="icon-account-login"></use>
|
||||
</svg>
|
||||
```
|
||||
|
||||
Sizing icons only needs basic CSS. All the icons are in a square format, so just set the `<svg>` tag with equal width and height dimensions.
|
||||
|
||||
```
|
||||
.icon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
```
|
||||
|
||||
Coloring icons is even easier. All you need to do is set the `fill` rule on the `<use>` tag.
|
||||
|
||||
```
|
||||
.icon-account-login {
|
||||
fill: #f00;
|
||||
}
|
||||
```
|
||||
|
||||
To learn more about SVG Sprites, read [Chris Coyier's guide](http://css-tricks.com/svg-sprites-use-better-icon-fonts/).
|
||||
|
||||
#### Using Open Iconic's Icon Font...
|
||||
|
||||
|
||||
##### …with Bootstrap
|
||||
|
||||
You can find our Bootstrap stylesheets in `font/css/open-iconic-bootstrap.{css, less, scss, styl}`
|
||||
|
||||
|
||||
```
|
||||
<link href="/open-iconic/font/css/open-iconic-bootstrap.css" rel="stylesheet">
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
<span class="oi oi-icon-name" title="icon name" aria-hidden="true"></span>
|
||||
```
|
||||
|
||||
##### …with Foundation
|
||||
|
||||
You can find our Foundation stylesheets in `font/css/open-iconic-foundation.{css, less, scss, styl}`
|
||||
|
||||
```
|
||||
<link href="/open-iconic/font/css/open-iconic-foundation.css" rel="stylesheet">
|
||||
```
|
||||
|
||||
|
||||
```
|
||||
<span class="fi-icon-name" title="icon name" aria-hidden="true"></span>
|
||||
```
|
||||
|
||||
##### …on its own
|
||||
|
||||
You can find our default stylesheets in `font/css/open-iconic.{css, less, scss, styl}`
|
||||
|
||||
```
|
||||
<link href="/open-iconic/font/css/open-iconic.css" rel="stylesheet">
|
||||
```
|
||||
|
||||
```
|
||||
<span class="oi" data-glyph="icon-name" title="icon name" aria-hidden="true"></span>
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
### Icons
|
||||
|
||||
All code (including SVG markup) is under the [MIT License](http://opensource.org/licenses/MIT).
|
||||
|
||||
### Fonts
|
||||
|
||||
All fonts are under the [SIL Licensed](http://scripts.sil.org/cms/scripts/page.php?item_id=OFL_web).
|
||||
1
Implementation/Client/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css
vendored
Normal file
1
Implementation/Client/wwwroot/css/open-iconic/font/css/open-iconic-bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
|
|
@ -0,0 +1,543 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<!--
|
||||
2014-7-1: Created.
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
Created by FontForge 20120731 at Tue Jul 1 20:39:22 2014
|
||||
By P.J. Onori
|
||||
Created by P.J. Onori with FontForge 2.0 (http://fontforge.sf.net)
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="open-iconic" horiz-adv-x="800" >
|
||||
<font-face
|
||||
font-family="Icons"
|
||||
font-weight="400"
|
||||
font-stretch="normal"
|
||||
units-per-em="800"
|
||||
panose-1="2 0 5 3 0 0 0 0 0 0"
|
||||
ascent="800"
|
||||
descent="0"
|
||||
bbox="-0.5 -101 802 800.126"
|
||||
underline-thickness="50"
|
||||
underline-position="-100"
|
||||
unicode-range="U+E000-E0DE"
|
||||
/>
|
||||
<missing-glyph />
|
||||
<glyph glyph-name="" unicode=""
|
||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM400 500l200 -150l-200 -150v100h-400v100h400v100z" />
|
||||
<glyph glyph-name="1" unicode=""
|
||||
d="M300 700h500v-700h-500v100h400v500h-400v100zM200 500v-100h400v-100h-400v-100l-200 150z" />
|
||||
<glyph glyph-name="2" unicode=""
|
||||
d="M350 700c193 0 350 -157 350 -350v-50h100l-200 -200l-200 200h100v50c0 138 -112 250 -250 250s-250 -112 -250 -250c0 193 157 350 350 350z" />
|
||||
<glyph glyph-name="3" unicode=""
|
||||
d="M450 700c193 0 350 -157 350 -350c0 138 -112 250 -250 250s-250 -112 -250 -250v-50h100l-200 -200l-200 200h100v50c0 193 157 350 350 350z" />
|
||||
<glyph glyph-name="4" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM100 500h600v-100h-600v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="5" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h600v-100h-600v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="6" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM200 500h600v-100h-600v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="7" unicode=""
|
||||
d="M400 700c75 0 146 -23 206 -59l-75 -225l-322 234c57 31 122 50 191 50zM125 588l191 -138l-310 -222c-4 24 -6 47 -6 72c0 114 49 215 125 288zM688 575c69 -72 112 -168 112 -275c0 -35 -8 -68 -16 -100h-218zM216 253l112 -347c-128 23 -232 109 -287 222zM372 100
|
||||
h372c-64 -109 -177 -185 -310 -197z" />
|
||||
<glyph glyph-name="8" unicode="" horiz-adv-x="600"
|
||||
d="M200 800h100v-500h200l-247 -300l-253 300h200v500z" />
|
||||
<glyph glyph-name="9" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 700v-300h-200l300 -300l300 300h-200v300h-200z" />
|
||||
<glyph glyph-name="a" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300l300 -300v200h300v200h-300v200z" />
|
||||
<glyph glyph-name="b" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700v-200h-300v-200h300v-200l300 300z" />
|
||||
<glyph glyph-name="c" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700l-300 -300h200v-300h200v300h200z" />
|
||||
<glyph glyph-name="d" unicode=""
|
||||
d="M300 600v-200h500v-100h-500v-200l-300 247z" />
|
||||
<glyph glyph-name="e" unicode=""
|
||||
d="M500 600l300 -247l-300 -253v200h-500v100h500v200z" />
|
||||
<glyph glyph-name="f" unicode="" horiz-adv-x="600"
|
||||
d="M200 800h200v-500h200l-297 -300l-303 300h200v500z" />
|
||||
<glyph glyph-name="10" unicode=""
|
||||
d="M300 700v-200h500v-200h-500v-200l-300 297z" />
|
||||
<glyph glyph-name="11" unicode=""
|
||||
d="M500 700l300 -297l-300 -303v200h-500v200h500v200z" />
|
||||
<glyph glyph-name="12" unicode="" horiz-adv-x="600"
|
||||
d="M297 800l303 -300h-200v-500h-200v500h-200z" />
|
||||
<glyph glyph-name="13" unicode="" horiz-adv-x="600"
|
||||
d="M247 800l253 -300h-200v-500h-100v500h-200z" />
|
||||
<glyph glyph-name="14" unicode=""
|
||||
d="M400 800h100v-800h-100v800zM200 700h100v-600h-100v600zM600 600h100v-400h-100v400zM0 500h100v-200h-100v200z" />
|
||||
<glyph glyph-name="15" unicode=""
|
||||
d="M116 600l72 -72c-54 -54 -88 -126 -88 -209s34 -159 88 -213l-72 -72c-72 72 -116 175 -116 285s44 209 116 281zM684 600c72 -72 116 -171 116 -281s-44 -213 -116 -285l-72 72c54 54 88 130 88 213s-34 155 -88 209zM259 460l69 -72c-18 -18 -28 -41 -28 -69
|
||||
s10 -54 28 -72l-69 -72c-36 36 -59 89 -59 144s23 105 59 141zM541 459c36 -36 59 -85 59 -140s-23 -108 -59 -144l-69 72c18 18 28 44 28 72s-10 51 -28 69z" />
|
||||
<glyph glyph-name="16" unicode="" horiz-adv-x="400"
|
||||
d="M200 800c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM100 319c31 -11 65 -19 100 -19s68 8 100 19v-319l-100 100l-100 -100v319z" />
|
||||
<glyph glyph-name="17" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300c0 -66 21 -126 56 -175l419 419c-49 35 -109 56 -175 56zM644 575l-419 -419c49 -35 109 -56 175 -56c166 0 300 134 300 300
|
||||
c0 66 -21 126 -56 175z" />
|
||||
<glyph glyph-name="18" unicode=""
|
||||
d="M0 700h100v-600h700v-100h-800v700zM500 700h200v-500h-200v500zM200 500h200v-300h-200v300z" />
|
||||
<glyph glyph-name="19" unicode=""
|
||||
d="M397 800c13 1 23 -4 34 -13c2 -2 214 -254 241 -287h128v-100h-100v-366c0 -18 -16 -34 -34 -34h-532c-18 0 -34 16 -34 34v366h-100v100h128l234 281c9 11 22 18 35 19zM400 672l-144 -172h288zM250 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50
|
||||
v100c0 28 -22 50 -50 50zM550 300c-28 0 -50 -22 -50 -50v-100c0 -28 22 -50 50 -50s50 22 50 50v100c0 28 -22 50 -50 50z" />
|
||||
<glyph glyph-name="1a" unicode=""
|
||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9zM100 600v-400h500v400h-500z" />
|
||||
<glyph glyph-name="1b" unicode=""
|
||||
d="M9 700h682c6 0 9 -4 9 -10v-190h100v-200h-100v-191c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v582c0 6 3 9 9 9z" />
|
||||
<glyph glyph-name="1c" unicode=""
|
||||
d="M92 650c0 23 19 50 45 50h3h5h5h500c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-141c9 -17 120 -231 166 -309c16 -26 34 -61 34 -106c0 -39 -15 -77 -41 -103h-3c-26 -25 -62 -41 -100 -41h-512c-39 0 -77 15 -103 41s-41 64 -41 103c0 46 18 80 34 106
|
||||
c46 78 157 292 166 309v141h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51zM500 600h-200v-162l-6 -10s-63 -123 -119 -228h450c-56 105 -119 228 -119 228l-6 10v162z" />
|
||||
<glyph glyph-name="1d" unicode=""
|
||||
d="M400 800c110 0 200 -90 200 -200c0 -104 52 -198 134 -266c41 -34 66 -82 66 -134h-800c0 52 25 100 66 134c82 68 134 162 134 266c0 110 90 200 200 200zM300 100h200c0 -55 -45 -100 -100 -100s-100 45 -100 100z" />
|
||||
<glyph glyph-name="1e" unicode="" horiz-adv-x="600"
|
||||
d="M150 800h50l350 -250l-225 -147l225 -153l-350 -250h-50v250l-75 -75l-75 75l150 150l-150 150l75 75l75 -75v250zM250 650v-200l150 100zM250 350v-200l150 100z" />
|
||||
<glyph glyph-name="1f" unicode=""
|
||||
d="M0 800h500c110 0 200 -90 200 -200c0 -47 -17 -91 -44 -125c85 -40 144 -125 144 -225c0 -138 -112 -250 -250 -250h-550v100c55 0 100 45 100 100v400c0 55 -45 100 -100 100v100zM300 700v-200h100c55 0 100 45 100 100s-45 100 -100 100h-100zM300 400v-300h150
|
||||
c83 0 150 67 150 150s-67 150 -150 150h-150z" />
|
||||
<glyph glyph-name="20" unicode="" horiz-adv-x="600"
|
||||
d="M300 800v-300h200l-300 -500v300h-200z" />
|
||||
<glyph glyph-name="21" unicode=""
|
||||
d="M100 800h300v-300l100 100l100 -100v300h50c28 0 50 -22 50 -50v-550h-550c-28 0 -50 -22 -50 -50s22 -50 50 -50h550v-100h-550c-83 0 -150 67 -150 150v550l3 19c8 39 39 70 78 78z" />
|
||||
<glyph glyph-name="22" unicode="" horiz-adv-x="400"
|
||||
d="M0 800h400v-800l-200 200l-200 -200v800z" />
|
||||
<glyph glyph-name="23" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM0 600h300v-103h203v103h297v-591c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v591z" />
|
||||
<glyph glyph-name="24" unicode=""
|
||||
d="M300 800h200c55 0 100 -45 100 -100v-100h191c6 0 9 -3 9 -9v-241c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v241c0 6 3 9 9 9h191v100c0 55 45 100 100 100zM300 700v-100h200v100h-200zM0 209c16 -6 32 -9 50 -9h700c18 0 34 3 50 9v-200c0 -6 -3 -9 -9 -9h-782
|
||||
c-6 0 -9 3 -9 9v200z" />
|
||||
<glyph glyph-name="25" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c58 0 110 -16 147 -53s53 -89 53 -147h-100c0 39 -11 61 -25 75s-36 25 -75 25c-35 0 -55 -10 -72 -31s-28 -55 -28 -94c0 -51 20 -107 28 -175h172v-100h-178c-14 -60 -49 -127 -113 -200h491v-100h-600v122l16 12c69 69 95 121 106 166h-122v100h125
|
||||
c-8 50 -25 106 -25 175c0 58 16 114 50 156c34 43 88 69 150 69z" />
|
||||
<glyph glyph-name="26" unicode=""
|
||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-700c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v700v2c0 20 15 42 34 48zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50zM350 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h300c28 0 50 22 50 50
|
||||
s-22 50 -50 50h-300zM100 400v-400h600v400h-600z" />
|
||||
<glyph glyph-name="27" unicode=""
|
||||
d="M744 797l6 -3l44 -44c4 -4 3 -8 0 -12l-266 -375l-15 -13l-25 -12c-23 72 -78 127 -150 150l12 25l13 15l375 266zM266 400c74 0 134 -60 134 -134c0 -147 -119 -266 -266 -266c-48 0 -95 12 -134 34c80 46 134 133 134 232c0 74 58 134 132 134z" />
|
||||
<glyph glyph-name="28" unicode=""
|
||||
d="M9 451c0 23 19 50 46 50c8 0 19 -3 26 -7l131 -66l29 22c-79 81 -1 250 118 250s197 -167 119 -250l28 -22l131 66c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-115 -56c9 -16 19 -33 25 -50h68c28 0 50 -22 50 -50s-22 -50 -50 -50h-50
|
||||
c0 -23 -2 -45 -6 -66l78 -40c21 -5 37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11l-65 35c-24 -46 -62 -86 -103 -110c-35 19 -60 45 -60 72v135v4v5v6v5v5v87c0 28 -22 50 -50 50c-24 0 -45 -17 -50 -40c1 -3 1 -8 1 -11s0 -8 -1 -11v-82v-4v-5v-144
|
||||
c0 -28 -24 -53 -59 -72c-41 25 -79 64 -103 110l-66 -35c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49l78 40c-4 21 -6 43 -6 66h-50h-5c-28 0 -50 22 -50 50c0 26 22 50 50 50h5h69c6 17 16 34 25 50l-116 56c-16 7 -28 27 -28 45z" />
|
||||
<glyph glyph-name="29" unicode=""
|
||||
d="M600 700h91c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-91v600zM210 503l290 147v-500l-250 125v-3c-15 0 -25 -8 -28 -22l75 -178c11 -25 0 -58 -25 -69s-58 0 -69 25l-103 272h-91c-6 0 -9 3 -9 9v182c0 6 3 9 9 9h182z" />
|
||||
<glyph glyph-name="2a" unicode=""
|
||||
d="M9 800h682c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM100 700v-200h500v200h-500zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-300h100v300h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="2b" unicode=""
|
||||
d="M0 800h700v-200h-700v200zM0 500h700v-491c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v491zM100 400v-100h100v100h-100zM300 400v-100h100v100h-100zM500 400v-100h100v100h-100zM100 200v-100h100v100h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="2c" unicode=""
|
||||
d="M409 800h182c6 0 10 -4 12 -9l94 -182c2 -5 6 -9 12 -9h82c6 0 9 -3 9 -9v-582c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v441c0 83 67 150 150 150h141c6 0 10 4 12 9l94 182c2 5 6 9 12 9zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z
|
||||
M500 500c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM500 400c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="2d" unicode=""
|
||||
d="M0 600h800l-400 -400z" />
|
||||
<glyph glyph-name="2e" unicode="" horiz-adv-x="400"
|
||||
d="M400 800v-800l-400 400z" />
|
||||
<glyph glyph-name="2f" unicode="" horiz-adv-x="400"
|
||||
d="M0 800l400 -400l-400 -400v800z" />
|
||||
<glyph glyph-name="30" unicode=""
|
||||
d="M400 600l400 -400h-800z" />
|
||||
<glyph glyph-name="31" unicode=""
|
||||
d="M0 550c0 23 20 50 46 50h3h5h4h200c17 0 37 -13 44 -28l38 -72h444c14 0 19 -12 15 -25l-81 -250c-4 -13 -21 -25 -35 -25h-350c-14 0 -30 12 -34 25c-27 83 -54 167 -81 250l-10 25h-150c-2 0 -5 -1 -7 -1c-28 0 -51 23 -51 51zM358 100c28 0 50 -22 50 -50
|
||||
s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM658 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="32" unicode=""
|
||||
d="M0 700h500v-100h-300v-300h-100l-100 -100v500zM300 500h500v-500l-100 100h-400v400z" />
|
||||
<glyph glyph-name="33" unicode=""
|
||||
d="M641 700l143 -141l-493 -493c-71 76 -146 148 -219 222l-72 71l141 141c50 -51 101 -101 153 -150c116 117 234 231 347 350z" />
|
||||
<glyph glyph-name="34" unicode=""
|
||||
d="M150 600l250 -250l250 250l150 -150l-400 -400l-400 400z" />
|
||||
<glyph glyph-name="35" unicode="" horiz-adv-x="600"
|
||||
d="M400 800l150 -150l-250 -250l250 -250l-150 -150l-400 400z" />
|
||||
<glyph glyph-name="36" unicode="" horiz-adv-x="600"
|
||||
d="M150 800l400 -400l-400 -400l-150 150l250 250l-250 250z" />
|
||||
<glyph glyph-name="37" unicode=""
|
||||
d="M400 600l400 -400l-150 -150l-250 250l-250 -250l-150 150z" />
|
||||
<glyph glyph-name="38" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM600 622l-250 -250l-100 100l-72 -72l172 -172l322 322z" />
|
||||
<glyph glyph-name="39" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM250 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||
<glyph glyph-name="3a" unicode=""
|
||||
d="M350 800c28 0 50 -22 50 -50v-50h75c14 0 25 -11 25 -25v-75h-300v75c0 14 11 25 25 25h75v50c0 28 22 50 50 50zM25 700h75v-200h500v200h75c14 0 25 -11 25 -25v-650c0 -14 -11 -25 -25 -25h-650c-14 0 -25 11 -25 25v650c0 14 11 25 25 25z" />
|
||||
<glyph glyph-name="3b" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM350 600h100v-181c23 -24 47 -47 72 -69l-72 -72c-27 30 -55 59 -84 88l-16 12
|
||||
v222z" />
|
||||
<glyph glyph-name="3c" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-191v50c0 83 -67 150 -150 150s-150 -67 -150 -150v-50h-272c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM434 400h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1
|
||||
v-150h150l-200 -200l-200 200h150v150v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="3d" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -18 -3 -34 -9 -50h-141l-200 200l-200 -200h-222c-17 30 -28 63 -28 100c0 110 90 200 200 200c23 114 129 200 250 200zM450 350l250 -250h-200v-50c0 -28 -22 -50 -50 -50s-50 22 -50 50v50h-200z" />
|
||||
<glyph glyph-name="3e" unicode=""
|
||||
d="M450 700c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200s90 200 200 200c23 114 129 200 250 200z" />
|
||||
<glyph glyph-name="3f" unicode=""
|
||||
d="M250 800c82 0 154 -40 200 -100c-143 0 -270 -85 -325 -209c-36 -10 -70 -25 -100 -47c-16 33 -25 67 -25 106c0 138 112 250 250 250zM450 600c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -83 -67 -150 -150 -150h-450c-110 0 -200 90 -200 200
|
||||
s90 200 200 200c23 114 129 200 250 200z" />
|
||||
<glyph glyph-name="40" unicode=""
|
||||
d="M500 700h100l-300 -600h-100zM100 600h100l-100 -200l100 -200h-100l-100 200zM600 600h100l100 -200l-100 -200h-100l100 200z" />
|
||||
<glyph glyph-name="41" unicode=""
|
||||
d="M350 800h100l50 -119l28 -12l119 50l72 -72l-50 -119l12 -28l119 -50v-100l-119 -50l-12 -28l50 -119l-72 -72l-119 50l-28 -12l-50 -119h-100l-50 119l-28 12l-119 -50l-72 72l50 119l-12 28l-119 50v100l119 50l12 28l-50 119l72 72l119 -50l28 12zM400 550
|
||||
c-83 0 -150 -67 -150 -150s67 -150 150 -150s150 67 150 150s-67 150 -150 150z" />
|
||||
<glyph glyph-name="42" unicode=""
|
||||
d="M0 800h800v-200h-800v200zM200 500h400l-200 -200zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="43" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM500 600v-400l-200 200z" />
|
||||
<glyph glyph-name="44" unicode=""
|
||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM300 600l200 -200l-200 -200v400z" />
|
||||
<glyph glyph-name="45" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM400 500l200 -200h-400zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="46" unicode=""
|
||||
d="M150 700c83 0 150 -67 150 -150v-50h100v50c0 83 67 150 150 150s150 -67 150 -150s-67 -150 -150 -150h-50v-100h50c83 0 150 -67 150 -150s-67 -150 -150 -150s-150 67 -150 150v50h-100v-50c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150h50v100h-50
|
||||
c-83 0 -150 67 -150 150s67 150 150 150zM150 600c-28 0 -50 -22 -50 -50s22 -50 50 -50h50v50c0 28 -22 50 -50 50zM550 600c-28 0 -50 -22 -50 -50v-50h50c28 0 50 22 50 50s-22 50 -50 50zM300 400v-100h100v100h-100zM150 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||
s50 22 50 50v50h-50zM500 200v-50c0 -28 22 -50 50 -50s50 22 50 50s-22 50 -50 50h-50z" />
|
||||
<glyph glyph-name="47" unicode=""
|
||||
d="M0 791c0 5 4 9 9 9h782c6 0 9 -4 9 -10v-790l-200 200h-591c-6 0 -9 3 -9 9v582z" />
|
||||
<glyph glyph-name="48" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM600 600l-100 -300l-300 -100l100 300zM400 450c-28 0 -50 -22 -50 -50
|
||||
s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="49" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700v-600c166 0 300 134 300 300s-134 300 -300 300z" />
|
||||
<glyph glyph-name="4a" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM0 600h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100zM750 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="4b" unicode=""
|
||||
d="M25 700h750c14 0 25 -11 25 -25v-75h-800v75c0 14 11 25 25 25zM0 500h800v-375c0 -14 -11 -25 -25 -25h-750c-14 0 -25 11 -25 25v375zM100 300v-100h100v100h-100zM300 300v-100h100v100h-100z" />
|
||||
<glyph glyph-name="4c" unicode=""
|
||||
d="M100 800h100v-100h450l100 100l50 -50l-100 -100v-450h100v-100h-100v-100h-100v100h-500v500h-100v100h100v100zM200 600v-350l350 350h-350zM600 550l-350 -350h350v350z" />
|
||||
<glyph glyph-name="4d" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z
|
||||
M200 452c0 20 15 42 34 48h3h3h8c12 0 28 -7 36 -16l91 -90l25 6c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100l6 25l-90 91c-9 8 -16 24 -16 36zM550 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="4e" unicode=""
|
||||
d="M300 800h200v-300h200l-300 -300l-300 300h200v300zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="4f" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM400 600l300 -300h-200v-300h-200v300h-200z" />
|
||||
<glyph glyph-name="50" unicode=""
|
||||
d="M200 700h600v-600h-600l-200 300zM350 622l-72 -72l150 -150l-150 -150l72 -72l150 150l150 -150l72 72l-150 150l150 150l-72 72l-150 -150z" />
|
||||
<glyph glyph-name="51" unicode=""
|
||||
d="M400 700c220 0 400 -180 400 -400h-100c0 166 -134 300 -300 300s-300 -134 -300 -300h-100c0 220 180 400 400 400zM341 491l59 -88l59 88c81 -25 141 -101 141 -191c0 -110 -90 -200 -200 -200s-200 90 -200 200c0 90 60 166 141 191z" />
|
||||
<glyph glyph-name="52" unicode=""
|
||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300zM100 600v-100h100v100h-100zM100 400v-100h100v100h-100zM100 200v-100h400v100h-400z" />
|
||||
<glyph glyph-name="53" unicode="" horiz-adv-x="600"
|
||||
d="M200 700h100v-100h75c30 0 58 -6 81 -22s44 -44 44 -78v-100h-100v94c-4 3 -13 6 -25 6h-250c-14 0 -25 -11 -25 -25v-50c0 -15 20 -40 34 -44l257 -65c66 -16 109 -73 109 -141v-50c0 -68 -57 -125 -125 -125h-75v-100h-100v100h-75c-30 0 -58 6 -81 22s-44 44 -44 78
|
||||
v100h100v-94c4 -3 13 -6 25 -6h250c14 0 25 11 25 25v50c0 15 -20 40 -34 44l-257 65c-66 16 -109 73 -109 141v50c0 68 57 125 125 125h75v100z" />
|
||||
<glyph glyph-name="54" unicode=""
|
||||
d="M0 700h300v-300l-300 -300v600zM500 700h300v-300l-300 -300v600z" />
|
||||
<glyph glyph-name="55" unicode=""
|
||||
d="M300 700v-600h-300v300zM800 700v-600h-300v300z" />
|
||||
<glyph glyph-name="56" unicode=""
|
||||
d="M300 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300zM800 700v-100c-111 0 -200 -89 -200 -200h200v-300h-300v300c0 165 135 300 300 300z" />
|
||||
<glyph glyph-name="57" unicode=""
|
||||
d="M0 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300zM500 700h300v-300c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-200v300z" />
|
||||
<glyph glyph-name="58" unicode="" horiz-adv-x="600"
|
||||
d="M300 800l34 -34c11 -11 266 -270 266 -488c0 -165 -135 -300 -300 -300s-300 135 -300 300c0 218 255 477 266 488zM150 328c-28 0 -50 -22 -50 -50c0 -110 90 -200 200 -200c28 0 50 22 50 50s-22 50 -50 50c-55 0 -100 45 -100 100c0 28 -22 50 -50 50z" />
|
||||
<glyph glyph-name="59" unicode=""
|
||||
d="M400 800l400 -500h-800zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="5a" unicode="" horiz-adv-x="600"
|
||||
d="M300 800l300 -300h-600zM0 300h600l-300 -300z" />
|
||||
<glyph glyph-name="5b" unicode=""
|
||||
d="M0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200z" />
|
||||
<glyph glyph-name="5c" unicode=""
|
||||
d="M0 700h800v-100l-400 -200l-400 200v100zM0 500l400 -200l400 200v-400h-800v400z" />
|
||||
<glyph glyph-name="5d" unicode=""
|
||||
d="M400 800l400 -200v-600h-800v600zM400 688l-300 -150v-188l300 -150l300 150v188zM200 500h400v-100l-200 -100l-200 100v100z" />
|
||||
<glyph glyph-name="5e" unicode=""
|
||||
d="M600 700c69 0 134 -19 191 -50l-16 -106c-49 35 -109 56 -175 56c-131 0 -240 -84 -281 -200h331l-16 -100h-334c0 -36 8 -68 19 -100h297l-16 -100h-222c55 -61 133 -100 222 -100c78 0 147 30 200 78v-122c-59 -35 -127 -56 -200 -56c-147 0 -274 82 -344 200h-256
|
||||
l19 100h197c-8 32 -16 66 -16 100h-200l25 100h191c45 172 198 300 384 300z" />
|
||||
<glyph glyph-name="5f" unicode=""
|
||||
d="M0 700h700v-100h-700v100zM0 500h500v-100h-500v100zM0 300h800v-100h-800v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100z" />
|
||||
<glyph glyph-name="60" unicode=""
|
||||
d="M0 800h800v-100h-800v100zM200 600h400l-200 -200zM0 200h800v-200h-800v200z" />
|
||||
<glyph glyph-name="61" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM600 800h200v-800h-200v800zM200 600l200 -200l-200 -200v400z" />
|
||||
<glyph glyph-name="62" unicode=""
|
||||
d="M0 800h200v-800h-200v800zM700 800h100v-800h-100v800zM600 600v-400l-200 200z" />
|
||||
<glyph glyph-name="63" unicode=""
|
||||
d="M0 800h800v-200h-800v200zM400 400l200 -200h-400zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="64" unicode=""
|
||||
d="M0 800h200v-100h-100v-600h600v100h100v-200h-800v800zM400 800h400v-400l-150 150l-250 -250l-100 100l250 250z" />
|
||||
<glyph glyph-name="65" unicode=""
|
||||
d="M403 700c247 0 397 -300 397 -300s-150 -300 -397 -300c-253 0 -403 300 -403 300s150 300 403 300zM400 600c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200zM400 500c10 0 19 -3 28 -6c-16 -8 -28 -24 -28 -44c0 -28 22 -50 50 -50
|
||||
c20 0 36 12 44 28c3 -9 6 -18 6 -28c0 -55 -45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="66" unicode="" horiz-adv-x="900"
|
||||
d="M331 700h3h3c3 1 7 1 10 1c12 0 29 -8 37 -17l94 -93l66 65c57 57 155 57 212 0c58 -58 58 -154 0 -212l-65 -66l93 -94c10 -8 18 -25 18 -38c0 -28 -22 -50 -50 -50c-13 0 -32 9 -40 20l-62 65l-381 -381h-269v272l375 381l-63 63c-9 8 -16 24 -16 36c0 20 16 42 35 48z
|
||||
M447 481l-313 -315l128 -132l316 316z" />
|
||||
<glyph glyph-name="67" unicode=""
|
||||
d="M0 800h300v-400h400v-400h-700v800zM400 800l300 -300h-300v300z" />
|
||||
<glyph glyph-name="68" unicode=""
|
||||
d="M200 800c0 0 200 -100 200 -300s-298 -302 -200 -500c0 0 -200 100 -200 300s300 300 200 500zM500 500c0 0 200 -100 200 -300c0 -150 -60 -200 -100 -200h-300c0 200 300 300 200 500z" />
|
||||
<glyph glyph-name="69" unicode=""
|
||||
d="M0 800h100v-800h-100v800zM200 800h300v-100h300l-200 -203l200 -197h-400v100h-200v400z" />
|
||||
<glyph glyph-name="6a" unicode="" horiz-adv-x="400"
|
||||
d="M150 800h150l-100 -200h200l-150 -300h150l-300 -300l-100 300h134l66 200h-200z" />
|
||||
<glyph glyph-name="6b" unicode=""
|
||||
d="M0 800h300v-100h500v-100h-800v200zM0 500h800v-450c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v450z" />
|
||||
<glyph glyph-name="6c" unicode=""
|
||||
d="M150 800c83 0 150 -67 150 -150c0 -66 -41 -121 -100 -141v-118c15 5 33 9 50 9h200c28 0 50 22 50 50v59c-59 20 -100 75 -100 141c0 83 67 150 150 150s150 -67 150 -150c0 -66 -41 -121 -100 -141v-59c0 -82 -68 -150 -150 -150h-200c-14 0 -25 -7 -34 -16
|
||||
c50 -24 84 -74 84 -134c0 -83 -67 -150 -150 -150s-150 67 -150 150c0 66 41 121 100 141v218c-59 20 -100 75 -100 141c0 83 67 150 150 150z" />
|
||||
<glyph glyph-name="6d" unicode=""
|
||||
d="M0 800h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400zM500 400l150 -150l150 150v-400h-400l150 150l-150 150z" />
|
||||
<glyph glyph-name="6e" unicode=""
|
||||
d="M100 800l150 -150l150 150v-400h-400l150 150l-150 150zM400 400h400l-150 -150l150 -150l-100 -100l-150 150l-150 -150v400z" />
|
||||
<glyph glyph-name="6f" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM400 700c-56 0 -108 -17 -153 -44l22 -19c33 -18 13 -48 -13 -59c-30 -13 -77 10 -65 -41c13 -55 -27 -3 -47 -15c-42 -26 49 -152 31 -156l-59 34c-8 0 -13 -5 -16 -10
|
||||
c1 -30 10 -57 19 -84c28 -11 77 -2 100 -25c47 -28 97 -115 75 -159c34 -13 68 -22 106 -22c101 0 193 48 247 125c3 24 -8 44 -50 44c-69 0 -156 13 -153 97c2 46 101 108 66 143c-30 30 12 39 12 66c0 37 -65 32 -69 50s20 36 41 56c-30 10 -60 19 -94 19zM631 591
|
||||
c-38 -11 -94 -35 -87 -53c6 -15 52 -1 65 -13c11 -10 16 -59 44 -31l22 22v3c-11 26 -26 50 -44 72z" />
|
||||
<glyph glyph-name="70" unicode=""
|
||||
d="M703 800l97 -100l-400 -400l-100 100l-200 -203l-100 100l300 303l100 -100zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="71" unicode=""
|
||||
d="M0 700h100v-100h-100v100zM200 700h100v-100h-100v100zM400 700h100v-100h-100v100zM600 700h100v-100h-100v100zM0 500h100v-100h-100v100zM200 500h100v-100h-100v100zM400 500h100v-100h-100v100zM600 500h100v-100h-100v100zM0 300h100v-100h-100v100zM200 300h100
|
||||
v-100h-100v100zM400 300h100v-100h-100v100zM600 300h100v-100h-100v100zM0 100h100v-100h-100v100zM200 100h100v-100h-100v100zM400 100h100v-100h-100v100zM600 100h100v-100h-100v100z" />
|
||||
<glyph glyph-name="72" unicode=""
|
||||
d="M0 800h200v-200h-200v200zM300 800h200v-200h-200v200zM600 800h200v-200h-200v200zM0 500h200v-200h-200v200zM300 500h200v-200h-200v200zM600 500h200v-200h-200v200zM0 200h200v-200h-200v200zM300 200h200v-200h-200v200zM600 200h200v-200h-200v200z" />
|
||||
<glyph glyph-name="73" unicode=""
|
||||
d="M0 800h300v-300h-300v300zM500 800h300v-300h-300v300zM0 300h300v-300h-300v300zM500 300h300v-300h-300v300z" />
|
||||
<glyph glyph-name="74" unicode=""
|
||||
d="M19 800h662c11 0 19 -8 19 -19v-331c0 -28 -22 -50 -50 -50h-600c-28 0 -50 22 -50 50v331c0 11 8 19 19 19zM0 309c16 -6 32 -9 50 -9h600c18 0 34 3 50 9v-290c0 -11 -8 -19 -19 -19h-662c-11 0 -19 8 -19 19v290zM550 200c-28 0 -50 -22 -50 -50s22 -50 50 -50
|
||||
s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="75" unicode=""
|
||||
d="M0 700h300v-100h-50c-28 0 -50 -22 -50 -50v-150h300v150c0 28 -22 50 -50 50h-50v100h300v-100h-50c-28 0 -50 -22 -50 -50v-400c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50v150h-300v-150c0 -28 22 -50 50 -50h50v-100h-300v100h50c28 0 50 22 50 50
|
||||
v400c0 28 -22 50 -50 50h-50v100z" />
|
||||
<glyph glyph-name="76" unicode=""
|
||||
d="M400 700c165 0 300 -135 300 -300v-100h50c28 0 50 -22 50 -50v-200c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v350c0 111 -89 200 -200 200s-200 -89 -200 -200v-350c0 -28 -22 -50 -50 -50h-100c-28 0 -50 22 -50 50v200c0 28 22 50 50 50h50v100
|
||||
c0 165 135 300 300 300z" />
|
||||
<glyph glyph-name="77" unicode=""
|
||||
d="M0 500c0 109 91 200 200 200s200 -91 200 -200c0 109 91 200 200 200s200 -91 200 -200c0 -55 -23 -105 -59 -141l-341 -340l-341 340c-36 36 -59 86 -59 141z" />
|
||||
<glyph glyph-name="78" unicode=""
|
||||
d="M400 700l400 -300l-100 3v-403h-200v200h-200v-200h-200v400h-100z" />
|
||||
<glyph glyph-name="79" unicode=""
|
||||
d="M0 800h800v-800h-800v800zM100 700v-300l100 100l400 -400h100v100l-200 200l100 100l100 -100v300h-600z" />
|
||||
<glyph glyph-name="7a" unicode=""
|
||||
d="M19 800h762c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-762c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 600v-300h100l100 -100h200l100 100h100v300h-600z" />
|
||||
<glyph glyph-name="7b" unicode=""
|
||||
d="M200 600c80 0 142 -56 200 -122c58 66 119 122 200 122c131 0 200 -101 200 -200s-69 -200 -200 -200c-81 0 -142 56 -200 122c-58 -66 -121 -122 -200 -122c-131 0 -200 101 -200 200s69 200 200 200zM200 500c-74 0 -100 -54 -100 -100s26 -100 100 -100
|
||||
c42 0 88 47 134 100c-46 53 -92 100 -134 100zM600 500c-43 0 -88 -47 -134 -100c46 -53 91 -100 134 -100c74 0 100 54 100 100s-26 100 -100 100z" />
|
||||
<glyph glyph-name="7c" unicode="" horiz-adv-x="400"
|
||||
d="M300 800c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100zM150 550c83 0 150 -69 150 -150c0 -66 -100 -214 -100 -250c0 -28 22 -50 50 -50s50 22 50 50h100c0 -83 -67 -150 -150 -150s-150 64 -150 150s100 222 100 250s-22 50 -50 50
|
||||
s-50 -22 -50 -50h-100c0 83 67 150 150 150z" />
|
||||
<glyph glyph-name="7d" unicode=""
|
||||
d="M200 800h500v-100h-122c-77 -197 -156 -392 -234 -588l-6 -12h162v-100h-500v100h122c77 197 156 392 234 588l7 12h-163v100z" />
|
||||
<glyph glyph-name="7e" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM100 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="7f" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM0 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="80" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 500h800v-100h-800v100zM0 300h800v-100h-800v100zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="81" unicode=""
|
||||
d="M550 800c138 0 250 -112 250 -250s-112 -250 -250 -250c-16 0 -32 0 -47 3l-3 -3v-100h-200v-200h-300v200l303 303c-3 15 -3 31 -3 47c0 138 112 250 250 250zM600 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||
<glyph glyph-name="82" unicode=""
|
||||
d="M134 600h3h4h4h5h500c28 0 50 -22 50 -50v-350h100v-150c0 -28 -22 -50 -50 -50h-700c-28 0 -50 22 -50 50v150h100v350v2c0 20 15 42 34 48zM200 500v-300h100v-100h200v100h100v300h-400z" />
|
||||
<glyph glyph-name="83" unicode=""
|
||||
d="M0 800h400v-400h-400v400zM500 600h100v-400h-400v100h300v300zM700 400h100v-400h-400v100h300v300z" />
|
||||
<glyph glyph-name="84" unicode="" horiz-adv-x="600"
|
||||
d="M337 694c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-300 -150c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50c0 21 16 44 37 49zM437 544c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-400 -200c-8 -6 -21 -11 -31 -11c-28 0 -50 22 -50 50
|
||||
c0 21 16 44 37 49zM437 344c6 4 12 7 21 7c28 0 50 -22 50 -50c0 -17 -12 -37 -27 -45l-106 -56c24 -4 43 -26 43 -50c0 -28 -23 -51 -51 -51c-2 0 -6 1 -8 1h-200c-26 1 -48 24 -48 50c0 16 12 36 26 44zM151 -50c0 23 20 50 46 50h3h4h5h100c28 0 50 -22 50 -50
|
||||
s-22 -50 -50 -50h-100c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||
<glyph glyph-name="85" unicode=""
|
||||
d="M199 800h100v-200h-200v100h100v100zM586 797h1c18 1 38 1 56 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0l-44 -44
|
||||
c-8 -13 -27 -24 -42 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43l43 44c32 33 72 53 128 56zM208 490c4 5 14 16 22 16h3c2 0 6 1 8 1c28 0 50 -22 50 -50c0 -11 -6 -27 -14 -35l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0l44 44c8 13 27 24 42 24
|
||||
c28 0 50 -22 50 -50c0 -15 -11 -35 -24 -43l-43 -44c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281zM499 200h200v-100h-100v-100h-100v200z" />
|
||||
<glyph glyph-name="86" unicode=""
|
||||
d="M586 797c18 1 39 1 57 -3c36 -8 69 -26 97 -54c78 -78 78 -203 0 -281l-150 -150c-62 -62 -132 -81 -182 -78s-69 17 -84 25s-26 27 -26 44c0 28 22 51 50 51c8 0 19 -3 26 -7c0 0 15 -11 41 -13s62 3 106 47l150 150c40 40 39 105 0 144c-41 41 -110 34 -144 0
|
||||
c-8 -13 -28 -24 -43 -24c-28 0 -50 22 -50 50c0 15 11 35 24 43c32 33 72 53 128 56zM386 566c50 -2 64 -17 85 -22s37 -28 37 -49c0 -28 -22 -50 -50 -50c-10 0 -23 5 -31 11c0 0 -19 9 -47 10s-63 -4 -103 -44l-150 -150c-40 -40 -39 -105 0 -144c41 -41 110 -34 144 0
|
||||
c8 13 27 24 42 24c28 0 50 -22 50 -50c0 -15 -10 -35 -23 -43c-22 -22 -48 -37 -75 -47c-70 -25 -151 -9 -207 47c-78 78 -78 203 0 281l150 150c60 60 128 78 178 76z" />
|
||||
<glyph glyph-name="87" unicode=""
|
||||
d="M0 700h300v-300h-300v300zM400 700h400v-100h-400v100zM400 500h300v-100h-300v100zM0 300h300v-300h-300v300zM400 300h400v-100h-400v100zM400 100h300v-100h-300v100z" />
|
||||
<glyph glyph-name="88" unicode=""
|
||||
d="M50 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 700h600v-100h-600v100zM50 500c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 500h600v-100h-600v100zM50 300c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||
s22 50 50 50zM200 300h600v-100h-600v100zM50 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM200 100h600v-100h-600v100z" />
|
||||
<glyph glyph-name="89" unicode=""
|
||||
d="M800 800l-400 -800l-100 300l-300 100z" />
|
||||
<glyph glyph-name="8a" unicode="" horiz-adv-x="600"
|
||||
d="M300 700c110 0 200 -90 200 -200v-100h100v-400h-600v400h100v100c0 110 90 200 200 200zM300 600c-56 0 -100 -44 -100 -100v-100h200v100c0 56 -44 100 -100 100z" />
|
||||
<glyph glyph-name="8b" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c110 0 200 -90 200 -200v-200h100v-400h-600v400h400v200c0 56 -44 100 -100 100s-100 -44 -100 -100h-100c0 110 90 200 200 200z" />
|
||||
<glyph glyph-name="8c" unicode=""
|
||||
d="M400 700v-100c-111 0 -200 -89 -200 -200h100l-150 -200l-150 200h100c0 165 135 300 300 300zM650 600l150 -200h-100c0 -165 -135 -300 -300 -300v100c111 0 200 89 200 200h-100z" />
|
||||
<glyph glyph-name="8d" unicode=""
|
||||
d="M100 800h600v-300h100l-150 -250l-150 250h100v200h-400v-100h-100v200zM150 550l150 -250h-100v-200h400v100h100v-200h-600v300h-100z" />
|
||||
<glyph glyph-name="8e" unicode=""
|
||||
d="M600 700l200 -150l-200 -150v100h-500v-100h-100v100c0 55 45 100 100 100h500v100zM200 300v-100h500v100h100v-100c0 -55 -45 -100 -100 -100h-500v-100l-200 150z" />
|
||||
<glyph glyph-name="8f" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -60 -17 -117 -44 -166c5 -3 12 -8 16 -12l100 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 100c-4 3 -9 9 -12 13c-49 -26 -107 -41 -166 -41c-193 0 -350 157 -350 350s157 350 350 350zM350 200
|
||||
c142 0 250 108 250 250c0 139 -111 250 -250 250s-250 -111 -250 -250s111 -250 250 -250z" />
|
||||
<glyph glyph-name="90" unicode="" horiz-adv-x="600"
|
||||
d="M300 800c166 0 300 -134 300 -300c0 -200 -300 -500 -300 -500s-300 300 -300 500c0 166 134 300 300 300zM300 700c-110 0 -200 -90 -200 -200s90 -200 200 -200s200 90 200 200s-90 200 -200 200z" />
|
||||
<glyph glyph-name="91" unicode="" horiz-adv-x="900"
|
||||
d="M0 800h800v-541c1 -3 1 -8 1 -11s0 -7 -1 -10v-238h-800v800zM495 250c0 26 22 50 50 50h5h150v400h-600v-600h600v100h-150h-5c-28 0 -50 22 -50 50zM350 600c83 0 150 -67 150 -150c0 -100 -150 -250 -150 -250s-150 150 -150 250c0 83 67 150 150 150zM350 500
|
||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="92" unicode="" horiz-adv-x="600"
|
||||
d="M0 700h200v-600h-200v600zM400 700h200v-600h-200v600z" />
|
||||
<glyph glyph-name="93" unicode="" horiz-adv-x="600"
|
||||
d="M0 700l600 -300l-600 -300v600z" />
|
||||
<glyph glyph-name="94" unicode="" horiz-adv-x="600"
|
||||
d="M300 700c166 0 300 -134 300 -300s-134 -300 -300 -300s-300 134 -300 300s134 300 300 300z" />
|
||||
<glyph glyph-name="95" unicode=""
|
||||
d="M400 700v-600l-400 300zM400 400l400 300v-600z" />
|
||||
<glyph glyph-name="96" unicode=""
|
||||
d="M0 700l400 -300l-400 -300v600zM400 100v600l400 -300z" />
|
||||
<glyph glyph-name="97" unicode=""
|
||||
d="M0 700h200v-600h-200v600zM200 400l500 300v-600z" />
|
||||
<glyph glyph-name="98" unicode=""
|
||||
d="M0 700l500 -300l-500 -300v600zM500 100v600h200v-600h-200z" />
|
||||
<glyph glyph-name="99" unicode="" horiz-adv-x="600"
|
||||
d="M0 700h600v-600h-600v600z" />
|
||||
<glyph glyph-name="9a" unicode=""
|
||||
d="M200 800h400v-200h200v-400h-200v-200h-400v200h-200v400h200v200z" />
|
||||
<glyph glyph-name="9b" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM0 403h800v-100h-800v100zM0 103h800v-100h-800v100z" />
|
||||
<glyph glyph-name="9c" unicode="" horiz-adv-x="600"
|
||||
d="M278 700c7 2 13 4 22 4c55 0 100 -45 100 -100v-4v-200c0 -55 -45 -100 -100 -100s-100 45 -100 100v200v2c0 44 35 88 78 98zM34 500h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-50c0 -111 89 -200 200 -200s200 89 200 200v50c0 28 22 50 50 50s50 -22 50 -50v-50
|
||||
c0 -148 -109 -270 -250 -294v-106h50c55 0 100 -45 100 -100h-400c0 55 45 100 100 100h50v106c-141 24 -250 146 -250 294v50v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="9d" unicode=""
|
||||
d="M0 500h800v-200h-800v200z" />
|
||||
<glyph glyph-name="9e" unicode=""
|
||||
d="M34 700h4h3h4h5h700c28 0 50 -22 50 -50v-500c0 -28 -22 -50 -50 -50h-250v-100h100c55 0 100 -45 100 -100h-600c0 55 45 100 100 100h100v100h-250c-28 0 -50 22 -50 50v500v2c0 20 15 42 34 48zM100 600v-400h600v400h-600z" />
|
||||
<glyph glyph-name="9f" unicode=""
|
||||
d="M272 700c-14 -40 -22 -83 -22 -128c0 -221 179 -400 400 -400c45 0 88 8 128 22c-53 -158 -202 -272 -378 -272c-221 0 -400 179 -400 400c0 176 114 325 272 378z" />
|
||||
<glyph glyph-name="a0" unicode=""
|
||||
d="M350 700l150 -150h-100v-150h150v100l150 -150l-150 -150v100h-150v-150h100l-150 -150l-150 150h100v150h-150v-100l-150 150l150 150v-100h150v150h-100z" />
|
||||
<glyph glyph-name="a1" unicode=""
|
||||
d="M800 800v-550c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v206c-201 -6 -327 -27 -400 -50v-397c0 -83 -67 -150 -150 -150s-150 67 -150 150s67 150 150 150c17 0 35 -4 50 -9v409s100 100 600 100z" />
|
||||
<glyph glyph-name="a2" unicode="" horiz-adv-x="700"
|
||||
d="M499 700c51 0 102 -20 141 -59c78 -78 78 -203 0 -281l-250 -244c-48 -48 -127 -48 -175 0s-48 127 0 175l96 97l69 -69l-90 -94l-7 -3c-10 -10 -10 -28 0 -38s28 -10 38 0l250 247c37 40 39 102 0 141s-104 40 -144 0l-278 -275c-66 -69 -68 -179 0 -247
|
||||
c69 -69 181 -69 250 0l9 12l116 113l69 -69l-125 -125c-107 -107 -281 -107 -388 0s-107 281 0 388l278 272c39 39 90 59 141 59z" />
|
||||
<glyph glyph-name="a3" unicode=""
|
||||
d="M600 800l200 -200l-100 -100l-200 200zM400 600l200 -200l-400 -400h-200v200z" />
|
||||
<glyph glyph-name="a4" unicode=""
|
||||
d="M550 800c83 0 150 -90 150 -200s-67 -200 -150 -200c-22 0 -40 8 -59 19c6 26 9 52 9 81c0 84 -27 158 -72 212c27 52 71 88 122 88zM250 700c83 0 150 -90 150 -200s-67 -200 -150 -200s-150 90 -150 200s67 200 150 200zM725 384c44 -22 75 -66 75 -118v-166h-200v66
|
||||
c0 50 -17 96 -44 134c66 2 126 33 169 84zM75 284c45 -53 106 -84 175 -84s130 31 175 84c44 -22 75 -66 75 -118v-166h-500v166c0 52 31 96 75 118z" />
|
||||
<glyph glyph-name="a5" unicode=""
|
||||
d="M400 800c110 0 200 -112 200 -250s-90 -250 -200 -250s-200 112 -200 250s90 250 200 250zM191 300c54 -61 128 -100 209 -100s155 39 209 100c106 -5 191 -92 191 -200v-100h-800v100c0 108 85 195 191 200z" />
|
||||
<glyph glyph-name="a6" unicode="" horiz-adv-x="600"
|
||||
d="M19 800h462c11 0 19 -8 19 -19v-762c0 -11 -8 -19 -19 -19h-462c-11 0 -19 8 -19 19v762c0 11 8 19 19 19zM100 700v-500h300v500h-300zM250 150c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="a7" unicode=""
|
||||
d="M350 800c17 0 34 -1 50 -3v-397l-297 297c63 64 150 103 247 103zM500 694c169 -25 300 -168 300 -344c0 -193 -157 -350 -350 -350c-85 0 -161 31 -222 81l272 272v341zM91 562l237 -234l-212 -212c-70 55 -116 138 -116 234c0 84 35 158 91 212z" />
|
||||
<glyph glyph-name="a8" unicode=""
|
||||
d="M92 650c0 23 20 50 46 50h3h4h5h400c28 0 50 -22 50 -50s-22 -50 -50 -50h-50v-200h100c55 0 100 -45 100 -100h-300v-300l-56 -100l-44 100v300h-300c0 55 45 100 100 100h100v200h-50c-2 0 -6 -1 -8 -1c-28 0 -50 23 -50 51z" />
|
||||
<glyph glyph-name="a9" unicode=""
|
||||
d="M400 800c221 0 400 -179 400 -400s-179 -400 -400 -400s-400 179 -400 400s179 400 400 400zM300 600v-400l300 200z" />
|
||||
<glyph glyph-name="aa" unicode=""
|
||||
d="M300 800h200v-300h300v-200h-300v-300h-200v300h-300v200h300v300z" />
|
||||
<glyph glyph-name="ab" unicode=""
|
||||
d="M300 800h100v-400h-100v400zM172 656l62 -78l-40 -31c-58 -46 -94 -117 -94 -197c0 -139 111 -250 250 -250s250 111 250 250c0 80 -39 151 -97 197l-37 31l62 78l38 -31c82 -64 134 -164 134 -275c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 111 53 211 134 275z
|
||||
" />
|
||||
<glyph glyph-name="ac" unicode=""
|
||||
d="M200 800h400v-200h-400v200zM9 500h782c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-91v200h-600v-200h-91c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM200 300h400v-300h-400v300z" />
|
||||
<glyph glyph-name="ad" unicode=""
|
||||
d="M0 700h100v-700h-100v700zM700 700h100v-700h-100v700zM200 600h200v-100h-200v100zM300 400h200v-100h-200v100zM400 200h200v-100h-200v100z" />
|
||||
<glyph glyph-name="ae" unicode=""
|
||||
d="M325 700c42 -141 87 -280 131 -419c29 74 59 148 88 222c30 -57 58 -114 87 -172h169v-100h-231l-13 28c-37 -92 -74 -184 -112 -275c-38 129 -79 257 -119 385c-42 -133 -83 -267 -125 -400c-28 88 -56 175 -84 262h-116v100h188l9 -34l3 -6c42 137 83 273 125 409z" />
|
||||
<glyph glyph-name="af" unicode=""
|
||||
d="M200 600c0 57 43 100 100 100s100 -43 100 -100c0 -28 -18 -48 -28 -72c-3 -6 -3 -16 -3 -28h231v-231c12 0 22 0 28 3c24 10 44 28 72 28c57 0 100 -43 100 -100s-43 -100 -100 -100c-28 0 -48 18 -72 28c-6 3 -16 3 -28 3v-231h-231c0 12 0 22 3 28c10 24 28 44 28 72
|
||||
c0 57 -43 100 -100 100s-100 -43 -100 -100c0 -28 18 -48 28 -72c3 -6 3 -16 3 -28h-231v600h231c0 12 0 22 -3 28c-10 24 -28 44 -28 72z" />
|
||||
<glyph glyph-name="b0" unicode="" horiz-adv-x="500"
|
||||
d="M247 700c84 0 148 -20 191 -59s59 -93 59 -141c0 -117 -69 -181 -119 -225s-81 -67 -81 -150v-25h-100v25c0 117 65 181 115 225s85 67 85 150c0 25 -8 48 -28 66s-56 34 -122 34s-97 -18 -116 -37s-27 -43 -31 -69l-100 12c5 38 19 88 59 128s103 66 188 66zM197 0h100
|
||||
v-100h-100v100z" />
|
||||
<glyph glyph-name="b1" unicode=""
|
||||
d="M450 800c138 0 250 -112 250 -250v-50c58 -21 100 -85 100 -150c0 -69 -48 -127 -112 -144c-22 55 -75 94 -138 94c-20 0 -39 -5 -56 -12c-17 64 -75 112 -144 112s-127 -48 -144 -112c-17 7 -36 12 -56 12c-37 0 -71 -12 -97 -34c-33 36 -53 82 -53 134
|
||||
c0 110 90 200 200 200c23 114 129 200 250 200zM334 300h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-200c0 -28 -22 -50 -50 -50s-50 22 -50 50v200v2c0 20 15 42 34 48zM134 200h4h3c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2
|
||||
c0 20 15 42 34 48zM534 200h3h4c3 0 6 1 9 1c28 0 50 -22 50 -50v-1v-100c0 -28 -22 -50 -50 -50s-50 22 -50 50v100v2c0 20 15 42 34 48z" />
|
||||
<glyph glyph-name="b2" unicode=""
|
||||
d="M600 800l200 -150l-200 -150v100h-50l-153 -191l175 -206l6 -3h22v100l200 -150l-200 -150v100h-25c-35 0 -56 12 -78 38l-166 190l-153 -190c-22 -27 -43 -38 -78 -38h-100v100h100l166 206l-163 191l-3 3h-100v100h100c34 0 56 -12 78 -38l153 -178l141 178
|
||||
c22 27 43 38 78 38h50v100z" />
|
||||
<glyph glyph-name="b3" unicode=""
|
||||
d="M400 800c110 0 209 -47 281 -119l119 119v-300h-300l109 109c-54 55 -126 91 -209 91c-166 0 -300 -134 -300 -300s134 -300 300 -300c83 0 158 34 212 88l72 -72c-72 -72 -174 -116 -284 -116c-220 0 -400 180 -400 400s180 400 400 400z" />
|
||||
<glyph glyph-name="b4" unicode=""
|
||||
d="M400 800h400v-400l-166 166l-400 -400l166 -166h-400v400l166 -166l400 400z" />
|
||||
<glyph glyph-name="b5" unicode="" horiz-adv-x="600"
|
||||
d="M250 800l250 -300h-200v-200h200l-250 -300l-250 300h200v200h-200z" />
|
||||
<glyph glyph-name="b6" unicode=""
|
||||
d="M300 600v-200h200v200l300 -250l-300 -250v200h-200v-200l-300 250z" />
|
||||
<glyph glyph-name="b7" unicode=""
|
||||
d="M0 800c441 0 800 -359 800 -800h-200c0 333 -267 600 -600 600v200zM0 500c275 0 500 -225 500 -500h-200c0 167 -133 300 -300 300v200zM0 200c110 0 200 -90 200 -200h-200v200z" />
|
||||
<glyph glyph-name="b8" unicode=""
|
||||
d="M100 800c386 0 700 -314 700 -700h-100c0 332 -268 600 -600 600v100zM100 600c276 0 500 -224 500 -500h-100c0 222 -178 400 -400 400v100zM100 400c165 0 300 -135 300 -300h-100c0 111 -89 200 -200 200v100zM100 200c55 0 100 -45 100 -100s-45 -100 -100 -100
|
||||
s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="b9" unicode=""
|
||||
d="M300 800h400c55 0 100 -45 100 -100v-200h-400v150c0 28 -22 50 -50 50s-50 -22 -50 -50v-250h400v-300c0 -55 -45 -100 -100 -100h-500c-55 0 -100 45 -100 100v200h100v-150c0 -28 22 -50 50 -50s50 22 50 50v550c0 55 45 100 100 100z" />
|
||||
<glyph glyph-name="ba" unicode=""
|
||||
d="M75 700h225v-100h-200v-500h400v100h100v-125c0 -41 -34 -75 -75 -75h-450c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM600 700l200 -200l-200 -200v100h-200c-94 0 -173 -65 -194 -153c23 199 189 353 394 353v100z" />
|
||||
<glyph glyph-name="bb" unicode=""
|
||||
d="M500 700l300 -284l-300 -316v200h-100c-200 0 -348 -102 -400 -300c0 295 100 500 500 500v200z" />
|
||||
<glyph glyph-name="bc" unicode=""
|
||||
d="M381 791l19 9l19 -9c127 -53 253 -108 381 -160v-31c0 -166 -67 -313 -147 -419c-40 -53 -83 -97 -125 -128s-82 -53 -128 -53s-86 22 -128 53s-85 75 -125 128c-80 107 -147 253 -147 419v31c128 52 254 107 381 160zM400 100v591l-294 -122c8 -126 58 -243 122 -328
|
||||
c35 -46 73 -86 106 -110s62 -31 66 -31z" />
|
||||
<glyph glyph-name="bd" unicode=""
|
||||
d="M600 800h100v-800h-100v800zM400 700h100v-700h-100v700zM200 500h100v-500h-100v500zM0 300h100v-300h-100v300z" />
|
||||
<glyph glyph-name="be" unicode=""
|
||||
d="M300 800h100v-200h200l100 -100l-100 -100h-200v-400h-100v500h-200l-100 100l100 100h200v100z" />
|
||||
<glyph glyph-name="bf" unicode=""
|
||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h200v-100h-200v100zM400 600h300v-100h-300v100zM400 400h400v-100h-400v100z" />
|
||||
<glyph glyph-name="c0" unicode=""
|
||||
d="M200 800h100v-600h200l-250 -200l-250 200h200v600zM400 800h400v-100h-400v100zM400 600h300v-100h-300v100zM400 400h200v-100h-200v100z" />
|
||||
<glyph glyph-name="c1" unicode=""
|
||||
d="M75 700h650c41 0 75 -34 75 -75v-550c0 -41 -34 -75 -75 -75h-650c-41 0 -75 34 -75 75v550c0 41 34 75 75 75zM100 600v-100h100v100h-100zM300 600v-100h400v100h-400zM100 400v-100h100v100h-100zM300 400v-100h400v100h-400zM100 200v-100h100v100h-100zM300 200
|
||||
v-100h400v100h-400z" />
|
||||
<glyph glyph-name="c2" unicode=""
|
||||
d="M400 800l100 -300h300l-250 -200l100 -300l-250 200l-250 -200l100 300l-250 200h300z" />
|
||||
<glyph glyph-name="c3" unicode=""
|
||||
d="M400 800c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM650 700c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 600c110 0 200 -90 200 -200
|
||||
s-90 -200 -200 -200s-200 90 -200 200s90 200 200 200zM50 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM750 450c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM150 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50
|
||||
s22 50 50 50zM650 200c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50zM400 100c28 0 50 -22 50 -50s-22 -50 -50 -50s-50 22 -50 50s22 50 50 50z" />
|
||||
<glyph glyph-name="c4" unicode=""
|
||||
d="M34 800h632c18 0 34 -16 34 -34v-732c0 -18 -16 -34 -34 -34h-632c-18 0 -34 16 -34 34v732c0 18 16 34 34 34zM100 700v-500h500v500h-500zM350 150c-38 0 -63 -42 -44 -75s69 -33 88 0s-6 75 -44 75z" />
|
||||
<glyph glyph-name="c5" unicode=""
|
||||
d="M0 800h300l500 -500l-300 -300l-500 500v300zM200 700c-55 0 -100 -45 -100 -100s45 -100 100 -100s100 45 100 100s-45 100 -100 100z" />
|
||||
<glyph glyph-name="c6" unicode=""
|
||||
d="M0 600h200l300 -300l-200 -200l-300 300v200zM340 600h160l300 -300l-200 -200l-78 78l119 122zM150 500c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="c7" unicode=""
|
||||
d="M400 800c220 0 400 -180 400 -400s-180 -400 -400 -400s-400 180 -400 400s180 400 400 400zM400 700c-166 0 -300 -134 -300 -300s134 -300 300 -300s300 134 300 300s-134 300 -300 300zM400 600c110 0 200 -90 200 -200s-90 -200 -200 -200s-200 90 -200 200
|
||||
s90 200 200 200zM400 500c-56 0 -100 -44 -100 -100s44 -100 100 -100s100 44 100 100s-44 100 -100 100z" />
|
||||
<glyph glyph-name="c8" unicode=""
|
||||
d="M0 700h559l-100 -100h-359v-500h500v159l100 100v-359h-700v700zM700 700l100 -100l-400 -400l-200 200l100 100l100 -100z" />
|
||||
<glyph glyph-name="c9" unicode=""
|
||||
d="M9 800h782c6 0 9 -3 9 -9v-782c0 -6 -3 -9 -9 -9h-782c-6 0 -9 3 -9 9v782c0 6 3 9 9 9zM150 722l-72 -72l100 -100l-100 -100l72 -72l172 172zM400 500v-100h300v100h-300z" />
|
||||
<glyph glyph-name="ca" unicode=""
|
||||
d="M0 800h800v-200h-50c0 55 -45 100 -100 100h-150v-550c0 -28 22 -50 50 -50h50v-100h-400v100h50c28 0 50 22 50 50v550h-150c-55 0 -100 -45 -100 -100h-50v200z" />
|
||||
<glyph glyph-name="cb" unicode=""
|
||||
d="M0 700h100v-400h-100v400zM200 700h350c21 0 39 -13 47 -31c0 0 103 -291 103 -319s-22 -50 -50 -50h-150c-28 0 -50 -25 -50 -50s39 -158 47 -184s-5 -55 -31 -63s-52 5 -66 31s-109 219 -128 238s-44 28 -72 28v400z" />
|
||||
<glyph glyph-name="cc" unicode=""
|
||||
d="M400 666c10 19 28 32 47 34l19 -3c26 -8 39 -37 31 -63s-47 -159 -47 -184s22 -50 50 -50h150c28 0 50 -22 50 -50s-103 -319 -103 -319c-8 -18 -26 -31 -47 -31h-350v400c28 0 53 9 72 28s114 212 128 238zM0 400h100v-400h-100v400z" />
|
||||
<glyph glyph-name="cd" unicode=""
|
||||
d="M200 700h300v-100h-100v-6c25 -4 50 -8 72 -16l-34 -94c-28 11 -58 16 -88 16c-139 0 -250 -111 -250 -250s111 -250 250 -250s250 111 250 250c0 31 -5 60 -16 88l91 37c14 -38 25 -81 25 -125c0 -193 -157 -350 -350 -350s-350 157 -350 350c0 176 130 323 300 347v3
|
||||
h-100v100zM700 584c0 0 -296 -348 -316 -368s-48 -20 -68 0s-20 48 0 68s384 300 384 300z" />
|
||||
<glyph glyph-name="ce" unicode=""
|
||||
d="M600 700l200 -150l-200 -150v100h-600v100h600v100zM200 300v-100h600v-100h-600v-100l-200 150z" />
|
||||
<glyph glyph-name="cf" unicode=""
|
||||
d="M300 800h100c55 0 100 -45 100 -100h100c55 0 100 -45 100 -100h-700c0 55 45 100 100 100h100c0 55 45 100 100 100zM100 500h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-350c0 -28 22 -50 50 -50s50 22 50 50v350h100v-481c0 -11 -8 -19 -19 -19h-462
|
||||
c-11 0 -19 8 -19 19v481z" />
|
||||
<glyph glyph-name="d0" unicode=""
|
||||
d="M100 800h200v-400c0 -55 45 -100 100 -100s100 45 100 100v400h100v-400c0 -110 -90 -200 -200 -200h-50c-138 0 -250 90 -250 200v400zM0 100h700v-100h-700v100z" />
|
||||
<glyph glyph-name="d1" unicode=""
|
||||
d="M9 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM609 700h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282
|
||||
c0 6 3 9 9 9zM0 100h800v-100h-800v100z" />
|
||||
<glyph glyph-name="d2" unicode=""
|
||||
d="M10 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 4 9 10 9zM610 700h181c6 0 9 -3 9 -9v-191h-200v191c0 6 5 9 10 9zM310 600h181c6 0 9 -3 9 -9v-91h-200v91c0 6 4 9 10 9zM0 400h800v-100h-800v100zM0 200h200v-191c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v191zM300 200
|
||||
h200v-91c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v91zM600 200h200v-191c0 -6 -3 -9 -9 -9h-181c-6 0 -10 3 -10 9v191z" />
|
||||
<glyph glyph-name="d3" unicode=""
|
||||
d="M0 700h800v-100h-800v100zM9 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v482c0 6 3 9 9 9zM309 500h182c6 0 9 -3 9 -9v-282c0 -6 -3 -9 -9 -9h-182c-6 0 -9 3 -9 9v282c0 6 3 9 9 9zM609 500h182c6 0 9 -3 9 -9v-482c0 -6 -3 -9 -9 -9h-182
|
||||
c-6 0 -9 3 -9 9v482c0 6 3 9 9 9z" />
|
||||
<glyph glyph-name="d4" unicode=""
|
||||
d="M50 600h500c28 0 50 -22 50 -50v-150l100 100h100v-300h-100l-100 100v-150c0 -28 -22 -50 -50 -50h-500c-28 0 -50 22 -50 50v400c0 28 22 50 50 50z" />
|
||||
<glyph glyph-name="d5" unicode=""
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 600v100c26 0 52 -4 75 -10c130 -33 225 -150 225 -290s-95 -258 -225 -291h-3c-23 -6 -47 -9 -72 -9v100c17 0 34 2 50 6c86 22 150 100 150 194s-64 172 -150 194c-16 4 -33 6 -50 6zM500 500l25 -3
|
||||
c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||
<glyph glyph-name="d6" unicode="" horiz-adv-x="600"
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200zM500 500l25 -3c44 -11 75 -51 75 -97s-32 -86 -75 -97l-25 -3v200z" />
|
||||
<glyph glyph-name="d7" unicode="" horiz-adv-x="400"
|
||||
d="M334 800h66v-800h-66l-134 200h-200v400h200z" />
|
||||
<glyph glyph-name="d8" unicode=""
|
||||
d="M309 800h82c6 0 10 -4 12 -9l294 -682l3 -19v-81c0 -6 -3 -9 -9 -9h-682c-6 0 -9 3 -9 9v81l3 19l294 682c2 5 6 9 12 9zM300 500v-200h100v200h-100zM300 200v-100h100v100h-100z" />
|
||||
<glyph glyph-name="d9" unicode=""
|
||||
d="M375 800c138 0 269 -39 378 -109l-53 -82c-93 60 -205 91 -325 91c-119 0 -229 -32 -322 -91l-53 82c109 70 237 109 375 109zM375 500c78 0 154 -23 216 -62l-53 -85c-46 30 -104 47 -163 47c-60 0 -112 -17 -159 -47l-54 85c62 40 134 62 213 62zM375 200
|
||||
c55 0 100 -45 100 -100s-45 -100 -100 -100s-100 45 -100 100s45 100 100 100z" />
|
||||
<glyph glyph-name="da" unicode="" horiz-adv-x="900"
|
||||
d="M551 800c16 0 32 0 47 -3l-97 -97v-200h200l97 97c3 -15 3 -31 3 -47c0 -138 -112 -250 -250 -250c-32 0 -62 8 -90 19l-288 -291c-20 -20 -46 -28 -72 -28s-52 8 -72 28c-39 39 -39 105 0 144l291 287c-11 28 -19 59 -19 91c0 138 112 250 250 250zM101 150
|
||||
c-28 0 -50 -22 -50 -50s22 -50 50 -50s50 22 50 50s-22 50 -50 50z" />
|
||||
<glyph glyph-name="db" unicode=""
|
||||
d="M141 700c84 -84 169 -167 253 -250c82 83 167 165 247 250l143 -141l-253 -253c84 -82 167 -166 253 -247l-143 -143c-81 86 -165 169 -247 253l-253 -253l-141 143c85 80 167 164 250 247c-83 84 -166 169 -250 253z" />
|
||||
<glyph glyph-name="dc" unicode=""
|
||||
d="M0 800h100l231 -300h38l231 300h100l-225 -300h225v-100h-300v-100h300v-100h-300v-200h-100v200h-300v100h300v100h-300v100h225z" />
|
||||
<glyph glyph-name="dd" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM300 600h100v-100h100v-100h-100v-100h-100v100h-100v100h100v100z" />
|
||||
<glyph glyph-name="de" unicode="" horiz-adv-x="900"
|
||||
d="M350 800c193 0 350 -157 350 -350c0 -61 -17 -119 -44 -169c4 -2 10 -6 13 -9l103 -100c16 -16 30 -49 30 -72c0 -56 -46 -102 -102 -102c-23 0 -56 14 -72 30l-100 103c-3 3 -7 9 -9 13c-50 -28 -108 -44 -169 -44c-193 0 -350 157 -350 350s157 350 350 350zM350 700
|
||||
c-139 0 -250 -111 -250 -250s111 -250 250 -250c62 0 119 23 163 60c7 11 19 25 31 31l3 3c34 43 53 97 53 156c0 139 -111 250 -250 250zM200 500h300v-100h-300v100z" />
|
||||
</font>
|
||||
</defs></svg>
|
||||
|
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 795 B |
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"app.title": "Turing Machine",
|
||||
|
||||
"section.visualization": "Visualization & Control",
|
||||
"section.config": "Configuration",
|
||||
|
||||
"status.currentState": "Current State",
|
||||
"status.steps": "Steps",
|
||||
"status.status": "Status",
|
||||
"status.halted": "Halted",
|
||||
"status.ready": "Ready/Running",
|
||||
|
||||
"button.loadConfig": "Load from Configuration",
|
||||
"button.applyTape": "Apply",
|
||||
|
||||
"label.examples": "Examples",
|
||||
"option.none": "None",
|
||||
|
||||
"label.tapeState": "Initial Tape State",
|
||||
"label.tapeValue": "Tape Value",
|
||||
"label.headIndex": "Head Index",
|
||||
"hint.tape": "Enter the initial tape string and the starting index for the head (usually 0 or point to LSB).",
|
||||
|
||||
"label.actionTable": "Action Table",
|
||||
"hint.format": "Format:",
|
||||
"hint.csvFormat": "CurrentState, ReadSymbol, NewState, WriteSymbol, MoveDirection(L/R/S), Comment(Optional)",
|
||||
|
||||
"table.no": "No.",
|
||||
"table.currentState": "Current State",
|
||||
"table.read": "Read",
|
||||
"table.newState": "New State",
|
||||
"table.write": "Write",
|
||||
"table.move": "Move",
|
||||
"table.comment": "Comment",
|
||||
|
||||
"control.step": "Step",
|
||||
"control.run": "Run",
|
||||
"control.pause": "Pause",
|
||||
"control.reset": "Reset",
|
||||
"control.speed": "Speed (ms)",
|
||||
|
||||
"error.columnCount": "Line {0} error: 5-6 items required (State, Read, NewState, Write, Move[, Comment]). Found {1} items.",
|
||||
"error.readSymbol": "Line {0} error: Read symbol '{1}' must be a single character.",
|
||||
"error.writeSymbol": "Line {0} error: Write symbol '{1}' must be a single character.",
|
||||
"error.moveDirection": "Line {0} error: Invalid move direction '{1}'. Use L, R, or S.",
|
||||
"error.duplicateKey": "Line {0} error: The pair of current state ({1}) and read symbol ({2}) duplicates line {3}.\nIn a deterministic Turing machine, each pair of current state and read symbol must be unique.",
|
||||
"error.noRules": "No valid rules found.",
|
||||
|
||||
"theme.toggle": "Toggle theme",
|
||||
"lang.select": "Select language"
|
||||
}
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
{
|
||||
"app.title": "튜링 머신",
|
||||
|
||||
"section.visualization": "시각화 및 제어",
|
||||
"section.config": "설정",
|
||||
|
||||
"status.currentState": "현재 상태",
|
||||
"status.steps": "단계",
|
||||
"status.status": "상태",
|
||||
"status.halted": "정지됨",
|
||||
"status.ready": "준비/실행 중",
|
||||
|
||||
"button.loadConfig": "설정에서 불러오기",
|
||||
"button.applyTape": "적용",
|
||||
|
||||
"label.examples": "예제",
|
||||
"option.none": "없음",
|
||||
|
||||
"label.tapeState": "초기 테이프 상태",
|
||||
"label.tapeValue": "테이프 값",
|
||||
"label.headIndex": "헤드 인덱스",
|
||||
"hint.tape": "초기 테이프 문자열과 헤드 시작 인덱스를 입력하세요 (보통 0 또는 LSB를 가리킴).",
|
||||
|
||||
"label.actionTable": "액션 테이블",
|
||||
"hint.format": "형식:",
|
||||
"hint.csvFormat": "현재상태, 읽기기호, 새상태, 쓰기기호, 이동방향(L/R/S), 주석(선택)",
|
||||
|
||||
"table.no": "번호",
|
||||
"table.currentState": "현재 상태",
|
||||
"table.read": "읽기",
|
||||
"table.newState": "새 상태",
|
||||
"table.write": "쓰기",
|
||||
"table.move": "이동",
|
||||
"table.comment": "주석",
|
||||
|
||||
"control.step": "한 단계",
|
||||
"control.run": "실행",
|
||||
"control.pause": "일시정지",
|
||||
"control.reset": "초기화",
|
||||
"control.speed": "속도 (ms)",
|
||||
|
||||
"error.columnCount": "{0}번째 줄 오류: 5~6개의 항목이 필요합니다 (상태, 읽기, 새상태, 쓰기, 이동[, 주석]). 현재 {1}개입니다.",
|
||||
"error.readSymbol": "{0}번째 줄 오류: 읽기 기호 '{1}'는 한 글자여야 합니다.",
|
||||
"error.writeSymbol": "{0}번째 줄 오류: 쓰기 기호 '{1}'는 한 글자여야 합니다.",
|
||||
"error.moveDirection": "{0}번째 줄 오류: 잘못된 이동 방향 '{1}'. L, R, S 중 하나를 사용하세요.",
|
||||
"error.duplicateKey": "{0}번째 줄 오류: 현재 상태({1})와 읽기 기호({2})의 쌍이 {3}번째 줄과 중복됩니다.\n결정적 튜링 머신에서는 현재 상태와 읽기 기호의 쌍이 하나만 존재해야 합니다.",
|
||||
"error.noRules": "유효한 규칙이 없습니다.",
|
||||
|
||||
"theme.toggle": "테마 전환",
|
||||
"lang.select": "언어 선택"
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.1 KiB |
|
|
@ -0,0 +1,24 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="flag-icons-kr" viewBox="0 0 640 480">
|
||||
<defs>
|
||||
<clipPath id="kr-a">
|
||||
<path fill-opacity=".7" d="M-95.8-.4h682.7v512H-95.8z"/>
|
||||
</clipPath>
|
||||
</defs>
|
||||
<g fill-rule="evenodd" clip-path="url(#kr-a)" transform="translate(89.8 .4)scale(.9375)">
|
||||
<path fill="#fff" d="M-95.8-.4H587v512H-95.8Z"/>
|
||||
<g transform="rotate(-56.3 361.6 -101.3)scale(10.66667)">
|
||||
<g id="kr-c">
|
||||
<path id="kr-b" fill="#000001" d="M-6-26H6v2H-6Zm0 3H6v2H-6Zm0 3H6v2H-6Z"/>
|
||||
<use xlink:href="#kr-b" width="100%" height="100%" y="44"/>
|
||||
</g>
|
||||
<path stroke="#fff" d="M0 17v10"/>
|
||||
<path fill="#cd2e3a" d="M0-12a12 12 0 0 1 0 24Z"/>
|
||||
<path fill="#0047a0" d="M0-12a12 12 0 0 0 0 24A6 6 0 0 0 0 0Z"/>
|
||||
<circle cy="-6" r="6" fill="#cd2e3a"/>
|
||||
</g>
|
||||
<g transform="rotate(-123.7 191.2 62.2)scale(10.66667)">
|
||||
<use xlink:href="#kr-c" width="100%" height="100%"/>
|
||||
<path stroke="#fff" d="M0-23.5v3M0 17v3.5m0 3v3"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.0 KiB |
|
|
@ -0,0 +1,9 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" id="flag-icons-us" viewBox="0 0 640 480">
|
||||
<path fill="#bd3d44" d="M0 0h640v480H0"/>
|
||||
<path stroke="#fff" stroke-width="37" d="M0 55.3h640M0 129h640M0 203h640M0 277h640M0 351h640M0 425h640"/>
|
||||
<path fill="#192f5d" d="M0 0h364.8v258.5H0"/>
|
||||
<marker id="us-a" markerHeight="30" markerWidth="30">
|
||||
<path fill="#fff" d="m14 0 9 27L0 10h28L5 27z"/>
|
||||
</marker>
|
||||
<path fill="none" marker-mid="url(#us-a)" d="m0 0 16 11h61 61 61 61 60L47 37h61 61 60 61L16 63h61 61 61 61 60L47 89h61 61 60 61L16 115h61 61 61 61 60L47 141h61 61 60 61L16 166h61 61 61 61 60L47 192h61 61 60 61L16 218h61 61 61 61 60z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 648 B |
|
|
@ -0,0 +1,74 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>Turing Machine</title>
|
||||
<base href="/" />
|
||||
<link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="css/app.css" rel="stylesheet" />
|
||||
<link rel="icon" type="image/png" href="favicon.png" />
|
||||
<link href="TuringMachine.Client.styles.css" rel="stylesheet" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<div style="display:flex;align-items:center;justify-content:center;height:100vh;font-family:sans-serif;color:#888;">
|
||||
Loading...
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="blazor-error-ui">
|
||||
An unhandled error has occurred.
|
||||
<a href="" class="reload">Reload</a>
|
||||
<a class="dismiss">🗙</a>
|
||||
</div>
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
<script>
|
||||
// Initialize theme immediately on page load to prevent flash
|
||||
(function () {
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
||||
const theme = savedTheme || (prefersDark ? 'dark' : 'light');
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
})();
|
||||
|
||||
// Set page title based on saved language preference
|
||||
(function () {
|
||||
const lang = localStorage.getItem('lang') || 'en-US';
|
||||
document.title = lang.startsWith('ko') ? '튜링 머신' : 'Turing Machine';
|
||||
})();
|
||||
|
||||
// Set document title
|
||||
window.setDocumentTitle = function (title) {
|
||||
document.title = title;
|
||||
};
|
||||
|
||||
// Get current theme
|
||||
window.getTheme = function () {
|
||||
return document.documentElement.getAttribute('data-theme') || 'light';
|
||||
};
|
||||
|
||||
// Set theme
|
||||
window.setTheme = function (theme) {
|
||||
document.documentElement.setAttribute('data-theme', theme);
|
||||
localStorage.setItem('theme', theme);
|
||||
};
|
||||
|
||||
// Scroll to element within its parent container only (prevents full page scroll)
|
||||
window.scrollToElement = function (elementId) {
|
||||
const element = document.getElementById(elementId);
|
||||
if (!element) return;
|
||||
const container = element.closest('.transition-table');
|
||||
if (!container) return;
|
||||
const containerRect = container.getBoundingClientRect();
|
||||
const elementRect = element.getBoundingClientRect();
|
||||
const offsetTop = elementRect.top - containerRect.top + container.scrollTop;
|
||||
const centerOffset = offsetTop - container.clientHeight / 2 + element.clientHeight / 2;
|
||||
container.scrollTo({ top: centerOffset, behavior: 'smooth' });
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,44 @@
|
|||
namespace TuringMachine.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// Model representing a Turing machine example configuration.
|
||||
/// </summary>
|
||||
public class ExampleConfig
|
||||
{
|
||||
/// <summary>Example name (localized)</summary>
|
||||
public List<LocalizedText> Name { get; set; } = new();
|
||||
|
||||
/// <summary>Initial tape content</summary>
|
||||
public string TapeInput { get; set; } = "";
|
||||
|
||||
/// <summary>Head start position</summary>
|
||||
public int HeadPosition { get; set; }
|
||||
|
||||
/// <summary>Action table (structured action list)</summary>
|
||||
public List<ActionEntry> Actions { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Model representing a single transition rule.
|
||||
/// </summary>
|
||||
public class ActionEntry
|
||||
{
|
||||
/// <summary>Rule value in CSV format (State, Read, NewState, Write, Move)</summary>
|
||||
public string Value { get; set; } = "";
|
||||
|
||||
/// <summary>Localized comment list</summary>
|
||||
public List<LocalizedText> Comment { get; set; } = new();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Localized text entry.
|
||||
/// </summary>
|
||||
public class LocalizedText
|
||||
{
|
||||
/// <summary>Language code (e.g. en-US, ko-KR)</summary>
|
||||
public string Language { get; set; } = "";
|
||||
|
||||
/// <summary>Text value for the language</summary>
|
||||
public string Value { get; set; } = "";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
using System;
|
||||
|
||||
namespace TuringMachine.Core
|
||||
{
|
||||
public class Machine
|
||||
{
|
||||
public Tape Tape { get; }
|
||||
public TransitionTable Transitions { get; }
|
||||
|
||||
public int HeadPosition { get; private set; }
|
||||
public string CurrentState { get; private set; }
|
||||
public bool IsHalted { get; private set; }
|
||||
public string InitialState { get; set; } = "q0";
|
||||
|
||||
public event Action? OnStep;
|
||||
public event Action? OnHalt;
|
||||
|
||||
public Machine()
|
||||
{
|
||||
Tape = new Tape();
|
||||
Transitions = new TransitionTable();
|
||||
CurrentState = InitialState;
|
||||
}
|
||||
|
||||
public void ForceHeadPosition(int position)
|
||||
{
|
||||
HeadPosition = position;
|
||||
}
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
Tape.Clear();
|
||||
HeadPosition = 0;
|
||||
CurrentState = InitialState;
|
||||
IsHalted = false;
|
||||
OnStep?.Invoke();
|
||||
}
|
||||
|
||||
public void LoadProgram(string initialState, IEnumerable<(string state, char read, string newState, char write, MoveDirection move, string comment)> transitions)
|
||||
{
|
||||
InitialState = initialState;
|
||||
Transitions.Clear();
|
||||
foreach (var t in transitions)
|
||||
{
|
||||
Transitions.Add(t.state, t.read, t.newState, t.write, t.move, t.comment);
|
||||
}
|
||||
Reset();
|
||||
}
|
||||
|
||||
public bool Step()
|
||||
{
|
||||
if (IsHalted) return false;
|
||||
|
||||
char readSymbol = Tape[HeadPosition];
|
||||
|
||||
if (Transitions.TryGetTransition(CurrentState, readSymbol, out var result))
|
||||
{
|
||||
if (result == null)
|
||||
{
|
||||
// Should not simplify happen due to TryGetTransition semantics, but for safety
|
||||
IsHalted = true;
|
||||
OnHalt?.Invoke();
|
||||
return false;
|
||||
}
|
||||
|
||||
Tape[HeadPosition] = result.WriteSymbol;
|
||||
CurrentState = result.NewState;
|
||||
|
||||
switch (result.MoveDirection)
|
||||
{
|
||||
case MoveDirection.Left:
|
||||
HeadPosition--;
|
||||
break;
|
||||
case MoveDirection.Right:
|
||||
HeadPosition++;
|
||||
break;
|
||||
}
|
||||
|
||||
OnStep?.Invoke();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
// No transition defined = Halt
|
||||
IsHalted = true;
|
||||
OnHalt?.Invoke();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,55 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace TuringMachine.Core
|
||||
{
|
||||
public class Tape
|
||||
{
|
||||
private readonly Dictionary<int, char> _data = new();
|
||||
private readonly char _blankSymbol;
|
||||
|
||||
public int MinIndex { get; private set; } = 0;
|
||||
public int MaxIndex { get; private set; } = 0;
|
||||
|
||||
public Tape(char blankSymbol = '_')
|
||||
{
|
||||
_blankSymbol = blankSymbol;
|
||||
}
|
||||
|
||||
public char this[int index]
|
||||
{
|
||||
get => _data.TryGetValue(index, out char value) ? value : _blankSymbol;
|
||||
set
|
||||
{
|
||||
if (value == _blankSymbol)
|
||||
{
|
||||
_data.Remove(index);
|
||||
}
|
||||
else
|
||||
{
|
||||
_data[index] = value;
|
||||
|
||||
// Track min/max indices
|
||||
if (_data.Count == 1)
|
||||
{
|
||||
MinIndex = index;
|
||||
MaxIndex = index;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (index < MinIndex) MinIndex = index;
|
||||
if (index > MaxIndex) MaxIndex = index;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
_data.Clear();
|
||||
MinIndex = 0;
|
||||
MaxIndex = 0;
|
||||
}
|
||||
|
||||
public IEnumerable<int> DefinedIndices => _data.Keys;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
namespace TuringMachine.Core
|
||||
{
|
||||
public enum MoveDirection
|
||||
{
|
||||
Left,
|
||||
Right,
|
||||
Stay
|
||||
}
|
||||
|
||||
public record TransitionKey(string State, char ReadSymbol);
|
||||
public record TransitionResult(string NewState, char WriteSymbol, MoveDirection MoveDirection, string Comment = "");
|
||||
|
||||
public class TransitionTable
|
||||
{
|
||||
private readonly Dictionary<TransitionKey, TransitionResult> _transitions = new();
|
||||
|
||||
public void Add(string state, char readSymbol, string newState, char writeSymbol, MoveDirection moveDirection, string comment = "")
|
||||
{
|
||||
_transitions[new TransitionKey(state, readSymbol)] = new TransitionResult(newState, writeSymbol, moveDirection, comment);
|
||||
}
|
||||
|
||||
public bool TryGetTransition(string state, char readSymbol, out TransitionResult? result)
|
||||
{
|
||||
return _transitions.TryGetValue(new TransitionKey(state, readSymbol), out result);
|
||||
}
|
||||
|
||||
public IEnumerable<KeyValuePair<TransitionKey, TransitionResult>> Items => _transitions;
|
||||
|
||||
public void Clear() => _transitions.Clear();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,115 @@
|
|||
# 튜링 머신 시뮬레이터
|
||||
|
||||
학생이 튜링 머신을 직접 사용해보면서 동작 원리를 이해할 수 있는 교육용 웹 애플리케이션입니다.
|
||||
|
||||
## 프로젝트 구조
|
||||
|
||||
```
|
||||
Implementation/
|
||||
├── TuringMachine.sln # 솔루션 파일
|
||||
├── Core/ # 핵심 시뮬레이션 엔진 (클래스 라이브러리)
|
||||
│ ├── Machine.cs # 튜링 머신 본체 (상태, 헤드, 실행)
|
||||
│ ├── Tape.cs # 무한 테이프 (Dictionary 기반 희소 구조)
|
||||
│ ├── Transition.cs # 상태 전이 규칙 정의
|
||||
│ └── ExampleConfig.cs # 예제 설정 모델
|
||||
├── Client/ # Blazor WebAssembly 프론트엔드
|
||||
│ ├── Pages/
|
||||
│ │ └── Home.razor # 메인 페이지 (시각화 + 편집)
|
||||
│ ├── Components/
|
||||
│ │ ├── Controls.razor # Step/Run/Reset 버튼, 속도 조절
|
||||
│ │ ├── TapeVisualizer.razor # 테이프 셀 시각화, 헤드 위치 표시
|
||||
│ │ ├── TransitionTableVisualizer.razor # Action Table 출력 (No./Comment 포함)
|
||||
│ │ ├── ThemeToggle.razor # 다크/라이트 모드 전환
|
||||
│ │ └── LanguageToggle.razor # 다국어 전환 (en-US, ko-KR)
|
||||
│ ├── Services/
|
||||
│ │ └── LocalizationService.cs # 다국어 서비스 (JSON 번역 파일 로드)
|
||||
│ ├── Shared/
|
||||
│ │ └── MainLayout.razor # 레이아웃
|
||||
│ └── wwwroot/ # 정적 파일 (index.html, CSS)
|
||||
│ └── i18n/ # 번역 파일
|
||||
│ ├── en-US.json # 영어 번역
|
||||
│ └── ko-KR.json # 한국어 번역
|
||||
└── Server/ # ASP.NET Core 백엔드
|
||||
├── Program.cs # 서버 설정, 미들웨어
|
||||
├── Controllers/
|
||||
│ └── ExamplesController.cs # GET /api/examples 엔드포인트
|
||||
└── Examples/
|
||||
└── Examples.json # 예제 설정 파일
|
||||
```
|
||||
|
||||
## 기술 스택
|
||||
|
||||
- **.NET 8.0** / **C# 12**
|
||||
- **Blazor WebAssembly** — 브라우저에서 C#을 직접 실행하는 SPA 프레임워크
|
||||
- **ASP.NET Core** — 정적 파일 서빙 및 예제 API 제공
|
||||
- **Bootstrap 5** — 기본 UI 스타일링
|
||||
- **다국어 지원 (i18n)** — 영어(en-US), 한국어(ko-KR) 지원, JSON 기반 번역 파일
|
||||
|
||||
## 주요 기능
|
||||
|
||||
### 시각화 (상단 영역)
|
||||
- **상태 패널**: 현재 상태, 실행 스텝 수, 정지 여부 표시
|
||||
- **테이프 시각화**: 15칸 뷰포트로 테이프를 표시하며, 헤드 위치를 하이라이트
|
||||
- **컨트롤**: Step(한 단계 실행), Run/Pause(자동 실행), Reset(초기화), 속도 조절(50~1000ms)
|
||||
- **Action Table**: 전이 규칙을 번호와 함께 테이블로 표시, 현재 실행 중인 규칙 하이라이트, Comment 컬럼으로 각 규칙에 대한 설명 표시
|
||||
|
||||
### 편집 (하단 영역)
|
||||
- **테이프 설정**: 초기 테이프 내용과 헤드 시작 위치 지정
|
||||
- **Action Table 입력**: CSV 형식으로 전이 규칙 작성
|
||||
```
|
||||
현재상태, 읽기기호, 새상태, 쓰기기호, 이동방향(L/R/S), 주석(선택)
|
||||
```
|
||||
- **예제 버튼**: 서버의 `Examples.json`에서 로드된 예제를 버튼으로 빠르게 적용
|
||||
|
||||
### 예제 관리
|
||||
예제는 `Server/Examples/Examples.json` 파일에서 관리됩니다. 서버 재시작 없이 JSON 파일을 수정하고 페이지를 새로고침하면 바로 반영됩니다.
|
||||
|
||||
```json
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "Example Name" },
|
||||
{ "Language": "ko-KR", "Value": "예제 이름" }
|
||||
],
|
||||
"TapeInput": "초기 테이프",
|
||||
"HeadPosition": 0,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "상태, 읽기, 새상태, 쓰기, 이동",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "English comment" },
|
||||
{ "Language": "ko-KR", "Value": "한국어 주석" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 내장 예제
|
||||
1. **Binary Increment / 이진수 증가** — 이진수 1 증가
|
||||
2. **String Reverse / 문자열 뒤집기** — 문자열 역순 복사
|
||||
3. **Palindrome Check / 회문 검사** — 회문 검사
|
||||
4. **Pattern Match / 패턴 탐색** — "ab" 패턴 탐색
|
||||
5. **Count 0s vs 1s / 0과 1 개수 비교** — 0과 1의 개수 비교
|
||||
|
||||
## 빌드 및 실행
|
||||
|
||||
```bash
|
||||
# 빌드
|
||||
dotnet build
|
||||
|
||||
# 실행 (Server 프로젝트 기준)
|
||||
dotnet run --project Server
|
||||
```
|
||||
|
||||
브라우저에서 `http://localhost:11100` 으로 접속합니다.
|
||||
|
||||
## 핵심 설계
|
||||
|
||||
### Core 라이브러리
|
||||
- **Tape**: `Dictionary<int, char>` 기반의 희소 자료구조로 무한 테이프를 효율적으로 표현
|
||||
- **TransitionTable**: (현재상태, 읽기기호) 쌍을 키로 하여 전이 규칙을 O(1)로 검색
|
||||
- **Machine**: `Step()` 메서드로 한 단계씩 실행하며, 매칭되는 규칙이 없으면 자동 정지(halt)
|
||||
|
||||
### 클라이언트-서버 통신
|
||||
- 클라이언트는 `OnInitializedAsync`에서 `GET /api/examples`를 호출하여 예제 목록을 로드
|
||||
- 튜링 머신 시뮬레이션 자체는 클라이언트(WebAssembly)에서 실행되므로 서버 통신 없이 동작
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using TuringMachine.Core;
|
||||
|
||||
namespace TuringMachine.Server.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class ExamplesController : ControllerBase
|
||||
{
|
||||
private static readonly JsonSerializerOptions JsonOptions = new()
|
||||
{
|
||||
PropertyNameCaseInsensitive = true
|
||||
};
|
||||
|
||||
private readonly IWebHostEnvironment _env;
|
||||
|
||||
public ExamplesController(IWebHostEnvironment env)
|
||||
{
|
||||
_env = env;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reads and returns the example list from a JSON file.
|
||||
/// The file is read on every request so changes are reflected without server restart.
|
||||
/// </summary>
|
||||
[HttpGet]
|
||||
public async Task<ActionResult<List<ExampleConfig>>> GetExamples()
|
||||
{
|
||||
var filePath = Path.Combine(_env.ContentRootPath, "Examples", "Examples.json");
|
||||
|
||||
if (!System.IO.File.Exists(filePath))
|
||||
{
|
||||
return NotFound("Examples.json not found.");
|
||||
}
|
||||
|
||||
var json = await System.IO.File.ReadAllTextAsync(filePath);
|
||||
var examples = JsonSerializer.Deserialize<List<ExampleConfig>>(json, JsonOptions);
|
||||
|
||||
return Ok(examples ?? new List<ExampleConfig>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,780 @@
|
|||
[
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "Binary Increment" },
|
||||
{ "Language": "ko-KR", "Value": "이진수 증가" }
|
||||
],
|
||||
"TapeInput": "1011",
|
||||
"HeadPosition": 3,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "q0, 1, q0, 0, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Change 1 to 0 and move left (carry propagation)" },
|
||||
{ "Language": "ko-KR", "Value": "1을 0으로 바꾸고 왼쪽으로 (올림 전파)" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "q0, 0, halt, 1, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Change 0 to 1 and halt (carry complete)" },
|
||||
{ "Language": "ko-KR", "Value": "0을 1로 바꾸고 정지 (올림 완료)" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "q0, _, halt, 1, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Write 1 on blank and halt (extra digit)" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸에 1을 쓰고 정지 (자릿수 증가)" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "String Reverse" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 뒤집기" }
|
||||
],
|
||||
"TapeInput": "abc",
|
||||
"HeadPosition": 0,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "start, a, start, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝까지 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, b, start, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝까지 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, c, start, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝까지 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, _, addSep, #, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Add separator # at end, move left" },
|
||||
{ "Language": "ko-KR", "Value": "끝에 구분자 # 추가 후 왼쪽으로" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "addSep, a, copyA, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Mark a as X and start copying" },
|
||||
{ "Language": "ko-KR", "Value": "a를 X로 표시하고 복사 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "addSep, b, copyB, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Mark b as X and start copying" },
|
||||
{ "Language": "ko-KR", "Value": "b를 X로 표시하고 복사 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "addSep, c, copyC, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Mark c as X and start copying" },
|
||||
{ "Language": "ko-KR", "Value": "c를 X로 표시하고 복사 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "addSep, X, addSep, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip already copied X, move left" },
|
||||
{ "Language": "ko-KR", "Value": "이미 복사한 X를 건너뛰고 왼쪽으로" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "addSep, #, done, #, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "All characters copied" },
|
||||
{ "Language": "ko-KR", "Value": "모든 문자 복사 완료" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyA, a, copyA, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyA, b, copyA, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyA, c, copyA, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyA, X, copyA, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyA, #, writeA, #, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Past #, find position to write a" },
|
||||
{ "Language": "ko-KR", "Value": "# 뒤로 이동하여 a를 쓸 위치 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyB, a, copyB, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyB, b, copyB, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyB, c, copyB, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyB, X, copyB, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyB, #, writeB, #, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Past #, find position to write b" },
|
||||
{ "Language": "ko-KR", "Value": "# 뒤로 이동하여 b를 쓸 위치 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyC, a, copyC, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyC, b, copyC, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyC, c, copyC, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyC, X, copyC, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find # separator" },
|
||||
{ "Language": "ko-KR", "Value": "# 구분자를 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "copyC, #, writeC, #, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Past #, find position to write c" },
|
||||
{ "Language": "ko-KR", "Value": "# 뒤로 이동하여 c를 쓸 위치 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeA, a, writeA, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeA, b, writeA, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeA, c, writeA, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeA, _, goBack, a, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Write a on blank and go back" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸에 a를 쓰고 되돌아가기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeB, a, writeB, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeB, b, writeB, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeB, c, writeB, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeB, _, goBack, b, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Write b on blank and go back" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸에 b를 쓰고 되돌아가기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeC, a, writeC, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeC, b, writeC, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeC, c, writeC, c, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find blank" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "writeC, _, goBack, c, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Write c on blank and go back" },
|
||||
{ "Language": "ko-KR", "Value": "빈칸에 c를 쓰고 되돌아가기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goBack, a, goBack, a, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to original position" },
|
||||
{ "Language": "ko-KR", "Value": "원본 위치로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goBack, b, goBack, b, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to original position" },
|
||||
{ "Language": "ko-KR", "Value": "원본 위치로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goBack, c, goBack, c, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to original position" },
|
||||
{ "Language": "ko-KR", "Value": "원본 위치로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goBack, #, goBack, #, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to original position" },
|
||||
{ "Language": "ko-KR", "Value": "원본 위치로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goBack, X, addSep, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Arrived at origin - start copying next character" },
|
||||
{ "Language": "ko-KR", "Value": "원본 위치 도착 - 다음 문자 복사 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "done, _, halt, _, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Copy complete - halt" },
|
||||
{ "Language": "ko-KR", "Value": "복사 완료 - 정지" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "Palindrome Check" },
|
||||
{ "Language": "ko-KR", "Value": "회문 검사" }
|
||||
],
|
||||
"TapeInput": "aba",
|
||||
"HeadPosition": 0,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "start, a, findEndA, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Mark first char a as X, move to end" },
|
||||
{ "Language": "ko-KR", "Value": "첫 글자 a를 X로 표시하고 끝으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, b, findEndB, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Mark first char b as X, move to end" },
|
||||
{ "Language": "ko-KR", "Value": "첫 글자 b를 X로 표시하고 끝으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, X, start, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip already processed X" },
|
||||
{ "Language": "ko-KR", "Value": "이미 처리한 X는 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "start, _, success, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "All characters checked - palindrome!" },
|
||||
{ "Language": "ko-KR", "Value": "모든 문자 검사 완료 - 회문!" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndA, a, findEndA, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndA, b, findEndA, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndA, X, findEndA, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndA, _, checkLastA, _, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached end - check last character" },
|
||||
{ "Language": "ko-KR", "Value": "끝 도착 - 마지막 문자 확인" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndB, a, findEndB, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndB, b, findEndB, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndB, X, findEndB, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Move right to find end of string" },
|
||||
{ "Language": "ko-KR", "Value": "문자열 끝을 찾아 오른쪽으로 이동" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "findEndB, _, checkLastB, _, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached end - check last character" },
|
||||
{ "Language": "ko-KR", "Value": "끝 도착 - 마지막 문자 확인" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastA, X, checkLastA, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip already processed X" },
|
||||
{ "Language": "ko-KR", "Value": "이미 처리한 X는 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastA, a, markMatch, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Last is also a - match! Mark as X" },
|
||||
{ "Language": "ko-KR", "Value": "마지막도 a - 일치! X로 표시" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastA, b, fail, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Last is b - mismatch! Not a palindrome" },
|
||||
{ "Language": "ko-KR", "Value": "마지막이 b - 불일치! 회문 아님" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastA, _, success, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Odd-length middle character - palindrome!" },
|
||||
{ "Language": "ko-KR", "Value": "홀수 길이 중간 문자 - 회문!" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastB, X, checkLastB, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip already processed X" },
|
||||
{ "Language": "ko-KR", "Value": "이미 처리한 X는 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastB, b, markMatch, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Last is also b - match! Mark as X" },
|
||||
{ "Language": "ko-KR", "Value": "마지막도 b - 일치! X로 표시" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastB, a, fail, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Last is a - mismatch! Not a palindrome" },
|
||||
{ "Language": "ko-KR", "Value": "마지막이 a - 불일치! 회문 아님" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkLastB, _, success, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Odd-length middle character - palindrome!" },
|
||||
{ "Language": "ko-KR", "Value": "홀수 길이 중간 문자 - 회문!" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "markMatch, a, markMatch, a, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to front" },
|
||||
{ "Language": "ko-KR", "Value": "다시 앞으로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "markMatch, b, markMatch, b, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to front" },
|
||||
{ "Language": "ko-KR", "Value": "다시 앞으로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "markMatch, X, start, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Arrived at front - start comparing next pair" },
|
||||
{ "Language": "ko-KR", "Value": "앞에 도착 - 다음 쌍 비교 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "markMatch, _, success, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "All pairs matched - palindrome!" },
|
||||
{ "Language": "ko-KR", "Value": "모든 쌍 일치 - 회문!" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "success, _, halt, _, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Result: It is a palindrome (Y)" },
|
||||
{ "Language": "ko-KR", "Value": "결과: 회문입니다 (Y)" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "fail, _, halt, _, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Result: Not a palindrome (N)" },
|
||||
{ "Language": "ko-KR", "Value": "결과: 회문이 아닙니다 (N)" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "Pattern Match" },
|
||||
{ "Language": "ko-KR", "Value": "패턴 탐색" }
|
||||
],
|
||||
"TapeInput": "xabyz",
|
||||
"HeadPosition": 0,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "scan, a, checkB, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Found a - check if next is b" },
|
||||
{ "Language": "ko-KR", "Value": "a 발견 - 다음이 b인지 확인" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "scan, b, scan, b, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip non-a character" },
|
||||
{ "Language": "ko-KR", "Value": "a가 아닌 문자 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "scan, x, scan, x, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip non-a character" },
|
||||
{ "Language": "ko-KR", "Value": "a가 아닌 문자 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "scan, y, scan, y, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip non-a character" },
|
||||
{ "Language": "ko-KR", "Value": "a가 아닌 문자 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "scan, z, scan, z, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Skip non-a character" },
|
||||
{ "Language": "ko-KR", "Value": "a가 아닌 문자 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "scan, _, notFound, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached end without finding pattern" },
|
||||
{ "Language": "ko-KR", "Value": "끝까지 패턴 못 찾음" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, b, found, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "b after a confirmed - pattern found!" },
|
||||
{ "Language": "ko-KR", "Value": "a 다음 b 확인 - 패턴 발견!" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, a, checkB, a, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "a after a - check if this a is followed by b" },
|
||||
{ "Language": "ko-KR", "Value": "a 다음 a - 이 a 다음이 b인지 확인" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, x, scan, x, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Not b after a - resume scanning" },
|
||||
{ "Language": "ko-KR", "Value": "a 다음이 b가 아님 - 다시 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, y, scan, y, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Not b after a - resume scanning" },
|
||||
{ "Language": "ko-KR", "Value": "a 다음이 b가 아님 - 다시 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, z, scan, z, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Not b after a - resume scanning" },
|
||||
{ "Language": "ko-KR", "Value": "a 다음이 b가 아님 - 다시 탐색" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "checkB, _, notFound, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached end without finding pattern" },
|
||||
{ "Language": "ko-KR", "Value": "끝까지 패턴 못 찾음" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "found, _, halt, _, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Result: Pattern found (Y)" },
|
||||
{ "Language": "ko-KR", "Value": "결과: 패턴 발견 (Y)" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "notFound, _, halt, _, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Result: Pattern not found (N)" },
|
||||
{ "Language": "ko-KR", "Value": "결과: 패턴 없음 (N)" }
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Name": [
|
||||
{ "Language": "en-US", "Value": "Count 0s vs 1s" },
|
||||
{ "Language": "ko-KR", "Value": "0과 1 개수 비교" }
|
||||
],
|
||||
"TapeInput": "01011010",
|
||||
"HeadPosition": 0,
|
||||
"Actions": [
|
||||
{
|
||||
"Value": "find0, 0, seek1, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Found 0, mark as X - go to start to find matching 1" },
|
||||
{ "Language": "ko-KR", "Value": "0을 찾아 X로 표시 - 짝이 될 1을 찾으러 처음으로" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find0, 1, find0, 1, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Looking for 0 - skip 1" },
|
||||
{ "Language": "ko-KR", "Value": "0을 찾는 중 - 1은 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find0, X, find0, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Looking for 0 - skip already processed X" },
|
||||
{ "Language": "ko-KR", "Value": "0을 찾는 중 - 이미 처리한 X는 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find0, _, chkDone, _, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "No more 0s - check if any 1s remain" },
|
||||
{ "Language": "ko-KR", "Value": "끝까지 0을 못 찾음 - 남은 1이 있는지 확인" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "seek1, 0, seek1, 0, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Moving to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 이동 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "seek1, 1, seek1, 1, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Moving to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 이동 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "seek1, X, seek1, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Moving to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 이동 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "seek1, _, find1, _, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached start - begin searching for 1" },
|
||||
{ "Language": "ko-KR", "Value": "처음 도착 - 1을 찾기 시작" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find1, 1, goStart, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Found 1, mark as X - pair complete! Return to start" },
|
||||
{ "Language": "ko-KR", "Value": "1을 찾아 X로 표시 - 한 쌍 완성! 처음으로 복귀" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find1, 0, find1, 0, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Looking for 1 - skip 0" },
|
||||
{ "Language": "ko-KR", "Value": "1을 찾는 중 - 0은 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find1, X, find1, X, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Looking for 1 - skip X" },
|
||||
{ "Language": "ko-KR", "Value": "1을 찾는 중 - X는 건너뛰기" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "find1, _, halt, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "No 1 found - more 0s than 1s! Result: N" },
|
||||
{ "Language": "ko-KR", "Value": "1을 못 찾음 - 0이 더 많다! 결과: N" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goStart, 0, goStart, 0, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goStart, 1, goStart, 1, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goStart, X, goStart, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Returning to start" },
|
||||
{ "Language": "ko-KR", "Value": "처음으로 되돌아가는 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "goStart, _, find0, _, R",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Reached start - go find next 0" },
|
||||
{ "Language": "ko-KR", "Value": "처음 도착 - 다음 0을 찾으러 출발" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "chkDone, X, chkDone, X, L",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Checking left for remaining 1s" },
|
||||
{ "Language": "ko-KR", "Value": "남은 1이 있는지 왼쪽으로 확인 중" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "chkDone, 1, halt, N, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "Unprocessed 1 remains - more 1s than 0s! Result: N" },
|
||||
{ "Language": "ko-KR", "Value": "처리 안 된 1이 남아있음 - 1이 더 많다! 결과: N" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"Value": "chkDone, _, halt, Y, S",
|
||||
"Comment": [
|
||||
{ "Language": "en-US", "Value": "No characters remain - equal count of 0s and 1s! Result: Y" },
|
||||
{ "Language": "ko-KR", "Value": "남은 문자 없음 - 0과 1의 개수가 같다! 결과: Y" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using Microsoft.Extensions.Logging.Abstractions;
|
||||
using Microsoft.Extensions.Logging.Console;
|
||||
|
||||
namespace TuringMachine.Server;
|
||||
|
||||
/// <summary>
|
||||
/// Custom log formatter that outputs a minimal timestamp + level + message format.
|
||||
/// </summary>
|
||||
public sealed class MinimalConsoleFormatter : ConsoleFormatter
|
||||
{
|
||||
public MinimalConsoleFormatter() : base("minimal") { }
|
||||
|
||||
public override void Write<TState>(
|
||||
in LogEntry<TState> logEntry,
|
||||
IExternalScopeProvider? scopeProvider,
|
||||
TextWriter textWriter)
|
||||
{
|
||||
string? message = logEntry.Formatter?.Invoke(logEntry.State, logEntry.Exception);
|
||||
if (message == null) return;
|
||||
|
||||
string timestamp = DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ss.fffzzz");
|
||||
string logLevel = logEntry.LogLevel.ToString().ToLower();
|
||||
|
||||
textWriter.WriteLine($"{timestamp} {logLevel}: {message}");
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
@page
|
||||
@model TuringMachine.Server.Pages.ErrorModel
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>Error</title>
|
||||
<link href="~/css/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
||||
<link href="~/css/app.css" rel="stylesheet" asp-append-version="true" />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="main">
|
||||
<div class="content px-4">
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to the <strong>Development</strong> environment displays detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||
|
||||
namespace TuringMachine.Server.Pages;
|
||||
|
||||
[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
|
||||
[IgnoreAntiforgeryToken]
|
||||
public class ErrorModel : PageModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
|
||||
private readonly ILogger<ErrorModel> _logger;
|
||||
|
||||
public ErrorModel(ILogger<ErrorModel> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public void OnGet()
|
||||
{
|
||||
RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
using Microsoft.Extensions.Logging.Console;
|
||||
using TuringMachine.Server;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Register custom log formatter
|
||||
builder.Logging.ClearProviders();
|
||||
builder.Logging.AddConsoleFormatter<MinimalConsoleFormatter, ConsoleFormatterOptions>();
|
||||
builder.Logging.AddConsole(options => options.FormatterName = "minimal");
|
||||
|
||||
// Add services to the container.
|
||||
|
||||
builder.Services.AddControllersWithViews();
|
||||
builder.Services.AddRazorPages();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseWebAssemblyDebugging();
|
||||
}
|
||||
else
|
||||
{
|
||||
app.UseExceptionHandler("/Error");
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
// app.UseHsts();
|
||||
}
|
||||
|
||||
// app.UseHttpsRedirection();
|
||||
|
||||
app.UseBlazorFrameworkFiles();
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
|
||||
app.MapRazorPages();
|
||||
app.MapControllers();
|
||||
app.MapFallbackToFile("index.html");
|
||||
|
||||
|
||||
// Open browser on startup for standalone execution
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
app.Lifetime.ApplicationStarted.Register(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
var url = app.Urls.FirstOrDefault()?.Replace("0.0.0.0", "localhost") ?? "http://localhost:11100";
|
||||
System.Diagnostics.Process.Start(new System.Diagnostics.ProcessStartInfo(url) { UseShellExecute = true });
|
||||
}
|
||||
catch { }
|
||||
});
|
||||
}
|
||||
|
||||
app.Run();
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
|
||||
"applicationUrl": "http://localhost:11100",
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Client\TuringMachine.Client.csproj" />
|
||||
<ProjectReference Include="..\Core\TuringMachine.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
</Project>
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
},
|
||||
"Urls": "http://0.0.0.0:11100"
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*",
|
||||
"Urls": "http://0.0.0.0:11100"
|
||||
}
|
||||
|
|
@ -0,0 +1,64 @@
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.0.0
|
||||
MinimumVisualStudioVersion = 16.0.0.0
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TuringMachine.Server", "Server\TuringMachine.Server.csproj", "{C10B8C48-83BE-46E8-9FB1-81D731504338}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TuringMachine.Client", "Client\TuringMachine.Client.csproj", "{7BCFC46E-536A-4104-ADB5-92463028E855}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TuringMachine.Core", "Core\TuringMachine.Core.csproj", "{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|x64.Build.0 = Release|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{C10B8C48-83BE-46E8-9FB1-81D731504338}.Release|x86.Build.0 = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|x64.Build.0 = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{7BCFC46E-536A-4104-ADB5-92463028E855}.Release|x86.Build.0 = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|x64.ActiveCfg = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|x64.Build.0 = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Debug|x86.Build.0 = Debug|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|x64.ActiveCfg = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|x64.Build.0 = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|x86.ActiveCfg = Release|Any CPU
|
||||
{CCAFACF6-678B-4A8A-B668-C7B7E159F83C}.Release|x86.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {00EC0834-DC51-4C39-B53F-EDB348CDFA19}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Loading…
Reference in New Issue