Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Commit 28c1b26

Browse files
Merge pull request #15 from OpenTabletDriver/wiki-layout
Improve wiki layout and maintainability
2 parents b2aa31d + b580d83 commit 28c1b26

13 files changed

Lines changed: 622 additions & 599 deletions

File tree

OpenTabletDriver.Web/Views/Shared/Wiki/_Navigation.cshtml

Lines changed: 0 additions & 25 deletions
This file was deleted.

OpenTabletDriver.Web/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@
5959
</main>
6060
</div>
6161

62-
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
63-
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
64-
<script src="~/js/site.js" asp-append-version="true"></script>
62+
<partial name="_Scripts"/>
6563
@await RenderSectionAsync("Scripts", required: false)
6664
</body>
6765
</html>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
2+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
3+
<script src="~/js/site.js" asp-append-version="true"></script>

OpenTabletDriver.Web/Views/Wiki/FAQ/General.cshtml

Lines changed: 125 additions & 132 deletions
Original file line numberDiff line numberDiff line change
@@ -2,139 +2,132 @@
22
ViewBag.Title = "FAQ";
33
}
44

5-
<partial name="Wiki/_Header"/>
5+
<h3 class="wiki-nav-item pb-2" id="appdata">
6+
Application Data Directory
7+
</h3>
8+
<table class="table">
9+
<tr>
10+
<th class="text-center">Operating System</th>
11+
<th>Path</th>
12+
</tr>
13+
<tr>
14+
<td class="text-center">Windows</td>
15+
<td>
16+
<code class="user-select-all">%localappdata%\OpenTabletDriver</code>
17+
</td>
18+
</tr>
19+
<tr>
20+
<td class="text-center">Linux</td>
21+
<td>
22+
<code class="user-select-all">~/.config/OpenTabletDriver</code>
23+
</td>
24+
</tr>
25+
<tr>
26+
<td class="text-center">macOS</td>
27+
<td>
28+
<code class="user-select-all">~/Library/Application Support/OpenTabletDriver</code>
29+
</td>
30+
</tr>
31+
</table>
632

7-
<div class="d-flex px-4">
8-
<div class="flex-fill">
9-
<h3 class="wiki-nav-item pb-2" id="appdata">
10-
Application Data Directory
11-
</h3>
12-
<table class="table">
13-
<tr>
14-
<th class="text-center">Operating System</th>
15-
<th>Path</th>
16-
</tr>
17-
<tr>
18-
<td class="text-center">Windows</td>
19-
<td>
20-
<code class="user-select-all">%localappdata%\OpenTabletDriver</code>
21-
</td>
22-
</tr>
23-
<tr>
24-
<td class="text-center">Linux</td>
25-
<td>
26-
<code class="user-select-all">~/.config/OpenTabletDriver</code>
27-
</td>
28-
</tr>
29-
<tr>
30-
<td class="text-center">macOS</td>
31-
<td>
32-
<code class="user-select-all">~/Library/Application Support/OpenTabletDriver</code>
33-
</td>
34-
</tr>
35-
</table>
33+
<hr/>
3634

37-
<hr/>
35+
<h3 class="wiki-nav-item pb-2" id="command-line-args">
36+
Command Line Arguments
37+
</h3>
38+
<h4>
39+
UI
40+
</h4>
41+
<table class="table">
42+
<tr>
43+
<th>Argument</th>
44+
<th>Description</th>
45+
</tr>
46+
<tr>
47+
<td><code class="user-select-all">--minimized</code> or <code class="user-select-all">-m</code></td>
48+
<td>Starts the application in a minimized state.</td>
49+
</tr>
50+
</table>
51+
<h4>
52+
Daemon
53+
</h4>
54+
<table class="table">
55+
<tr>
56+
<th>Argument</th>
57+
<th>Description</th>
58+
</tr>
59+
<tr>
60+
<td><code class="user-select-all">--appdata</code> or <code class="user-select-all">-a</code></td>
61+
<td>Specifies the application data directory.</td>
62+
</tr>
63+
<tr>
64+
<td><code class="user-select-all">--config</code> or <code class="user-select-all">-c</code></td>
65+
<td>Specifies the configurations directory.</td>
66+
</tr>
67+
</table>
3868

39-
<h3 class="wiki-nav-item pb-2" id="command-line-args">
40-
Command Line Arguments
41-
</h3>
42-
<h4>
43-
UI
44-
</h4>
45-
<table class="table">
46-
<tr>
47-
<th>Argument</th>
48-
<th>Description</th>
49-
</tr>
50-
<tr>
51-
<td><code class="user-select-all">--minimized</code> or <code class="user-select-all">-m</code></td>
52-
<td>Starts the application in a minimized state.</td>
53-
</tr>
54-
</table>
55-
<h4>
56-
Daemon
57-
</h4>
58-
<table class="table">
59-
<tr>
60-
<th>Argument</th>
61-
<th>Description</th>
62-
</tr>
63-
<tr>
64-
<td><code class="user-select-all">--appdata</code> or <code class="user-select-all">-a</code></td>
65-
<td>Specifies the application data directory.</td>
66-
</tr>
67-
<tr>
68-
<td><code class="user-select-all">--config</code> or <code class="user-select-all">-c</code></td>
69-
<td>Specifies the configurations directory.</td>
70-
</tr>
71-
</table>
69+
<hr/>
7270

73-
<hr/>
74-
75-
<h3 class="wiki-nav-item pb-2" id="area-conversion">
76-
Proprietary Driver Area Conversions
77-
</h3>
78-
<p>
79-
This can be performed from the UI or calculated manually.
80-
</p>
81-
<h4>
82-
OpenTabletDriver UI
83-
</h4>
84-
<ol>
85-
<li>Right click the tablet area editor</li>
86-
<li>Click the <code>convert item</code> menu item</li>
87-
<li>Select the OEM driver and insert your area values</li>
88-
</ol>
89-
<h4>
90-
Manual Area Conversion
91-
</h4>
92-
<p class="mb-2">
93-
Check the configuration file for your tablet
94-
<a href="https://github.com/OpenTabletDriver/OpenTabletDriver/tree/master/OpenTabletDriver/Configurations">here</a>
95-
or within the driver for properly calculated digitizer dimensions in millimeters.
96-
</p>
97-
<div class="text-muted px-3 mb-3">
98-
<small>
99-
<strong>Note:</strong> Huion and Gaomon areas use a &quot;percentage area&quot;, which uses a percentage
100-
of the tablet&#39;s maximum area to calculate the area.<br/>
101-
You must know your tablet&#39;s digitizer dimensions in millimeters in order to properly convert these areas.<br/>
102-
This is automatically handled in the UI, for the best results it is recommended to use it for converting from these proprietary drivers.<br/>
103-
</small>
104-
</div>
105-
<table class="table">
106-
<tr>
107-
<th class="text-center">Driver</th>
108-
<th>Formulas</th>
109-
</tr>
110-
<tr>
111-
<td class="text-center">Wacom, VEIKK</td>
112-
<td>
113-
<code>Width = (Right - Left) / 100</code><br/>
114-
<code>Height = (Bottom - Top) / 100</code><br/>
115-
<code>X Offset = (Left / 100) + (Width / 2)</code><br/>
116-
<code>Y Offset = (Top / 100) + (Height / 2)</code>
117-
</td>
118-
</tr>
119-
<tr>
120-
<td class="text-center">XP-Pen</td>
121-
<td>
122-
<code>Width = W / 3.937</code><br/>
123-
<code>Height = H / 3.937</code><br/>
124-
<code>X Offset = (Width / 2) + (X / 3.937)</code><br/>
125-
<code>Y Offset = (Height / 2) + (Y / 3.937)</code>
126-
</td>
127-
</tr>
128-
<tr>
129-
<td class="text-center">Huion, Gaomon</td>
130-
<td>
131-
<code>Width = (Right - Left) * tabletWidth</code><br/>
132-
<code>Height = (Bottom - Top) * tabletHeight</code><br/>
133-
<code>X Offset = (Width / 2) + (Left * tabletWidth)</code><br/>
134-
<code>Y Offset = (Height / 2) + (Top * tabletHeight)</code>
135-
</td>
136-
</tr>
137-
</table>
138-
</div>
139-
<partial name="Wiki/_Navigation"/>
140-
</div>
71+
<h3 class="wiki-nav-item pb-2" id="area-conversion">
72+
Proprietary Driver Area Conversions
73+
</h3>
74+
<p>
75+
This can be performed from the UI or calculated manually.
76+
</p>
77+
<h4>
78+
OpenTabletDriver UI
79+
</h4>
80+
<ol>
81+
<li>Right click the tablet area editor</li>
82+
<li>Click the <code>convert item</code> menu item</li>
83+
<li>Select the OEM driver and insert your area values</li>
84+
</ol>
85+
<h4>
86+
Manual Area Conversion
87+
</h4>
88+
<p class="mb-2">
89+
Check the configuration file for your tablet
90+
<a href="https://github.com/OpenTabletDriver/OpenTabletDriver/tree/master/OpenTabletDriver/Configurations">here</a>
91+
or within the driver for properly calculated digitizer dimensions in millimeters.
92+
</p>
93+
<div class="text-muted px-3 mb-3">
94+
<small>
95+
<strong>Note:</strong> Huion and Gaomon areas use a &quot;percentage area&quot;, which uses a percentage
96+
of the tablet&#39;s maximum area to calculate the area.<br/>
97+
You must know your tablet&#39;s digitizer dimensions in millimeters in order to properly convert these areas.<br/>
98+
This is automatically handled in the UI, for the best results it is recommended to use it for converting from these proprietary drivers.<br/>
99+
</small>
100+
</div>
101+
<table class="table">
102+
<tr>
103+
<th class="text-center">Driver</th>
104+
<th>Formulas</th>
105+
</tr>
106+
<tr>
107+
<td class="text-center">Wacom, VEIKK</td>
108+
<td>
109+
<code>Width = (Right - Left) / 100</code><br/>
110+
<code>Height = (Bottom - Top) / 100</code><br/>
111+
<code>X Offset = (Left / 100) + (Width / 2)</code><br/>
112+
<code>Y Offset = (Top / 100) + (Height / 2)</code>
113+
</td>
114+
</tr>
115+
<tr>
116+
<td class="text-center">XP-Pen</td>
117+
<td>
118+
<code>Width = W / 3.937</code><br/>
119+
<code>Height = H / 3.937</code><br/>
120+
<code>X Offset = (Width / 2) + (X / 3.937)</code><br/>
121+
<code>Y Offset = (Height / 2) + (Y / 3.937)</code>
122+
</td>
123+
</tr>
124+
<tr>
125+
<td class="text-center">Huion, Gaomon</td>
126+
<td>
127+
<code>Width = (Right - Left) * tabletWidth</code><br/>
128+
<code>Height = (Bottom - Top) * tabletHeight</code><br/>
129+
<code>X Offset = (Width / 2) + (Left * tabletWidth)</code><br/>
130+
<code>Y Offset = (Height / 2) + (Top * tabletHeight)</code>
131+
</td>
132+
</tr>
133+
</table>

0 commit comments

Comments
 (0)