~vcs-imports/ghex/master

« back to all changes in this revision

Viewing changes to help/HTML/zh_CN/ghex/advanced-clipboard.html

  • Committer: Logan Rathbone
  • Date: 2022-01-06 23:52:20 UTC
  • Revision ID: git-v1:c00df7466b5028d13d4859545ab947f2736c7784
static-html-help: Tarball rather than a bare dirtree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html>
2
 
<html>
3
 
<head>
4
 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
 
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
6
 
<title>Clipboard features</title>
7
 
<link rel="stylesheet" type="text/css" href="zh-CN.css">
8
 
<script type="text/javascript" src="highlight.pack.js"></script><script>
9
 
document.addEventListener('DOMContentLoaded', function() {
10
 
  var matches = document.querySelectorAll('code.syntax')
11
 
  for (var i = 0; i < matches.length; i++) {
12
 
    hljs.highlightBlock(matches[i]);
13
 
  }
14
 
}, false);</script><script type="text/javascript" src="yelp.js"></script>
15
 
</head>
16
 
<body lang="zh-CN" dir="ltr"><main><div class="page">
17
 
<header><div class="inner pagewide"><div class="trails" role="navigation"><div class="trail">
18
 
<a class="trail" href="index.html" title="GHex Help">GHex Help</a> › <a class="trail" href="index.html#advanced" title="Advanced topics">Advanced topics</a> » </div></div></div></header><article><div class="hgroup pagewide"><h1 class="title"><span class="title">Clipboard features</span></h1></div>
19
 
<div class="region">
20
 
<div class="contents pagewide"><p class="p">As copying and pasting hexadecimal values is not a standard operation in most
21
 
 applications, GHex has some unique clipboard features. </p></div>
22
 
<section id=""><div class="inner">
23
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Basic clipboard operations</span></h2></div>
24
 
<div class="region"><div class="contents pagewide">
25
 
<p class="p">Generally, when copying and pasting data within GHex, you need not concern
26
 
  yourself with clipboard operations.</p>
27
 
<p class="p">Copying and pasting within GHex works in the usual way.</p>
28
 
<p class="p">To cut or copy data, highlight the data you would like to cut or copy, and do
29
 
  any of the following:</p>
30
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
31
 
<li class="list"><p class="p">Right-click anywhere in the hex or ASCII pane to bring up the context menu,
32
 
    and select the appropriate option.</p></li>
33
 
<li class="list"><p class="p">To cut, press <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>X</kbd></span></span>.</p></li>
34
 
<li class="list"><p class="p">To copy, press <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>C</kbd></span></span>.</p></li>
35
 
</ul></div></div></div>
36
 
<p class="p">To paste data:</p>
37
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
38
 
<li class="list"><p class="p">Right-click to bring up the context menu, and click <span class="gui">Paste</span>; or</p></li>
39
 
<li class="list"><p class="p">Press <span class="keyseq"><span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>V</kbd></span></span>.</p></li>
40
 
</ul></div></div></div>
41
 
</div></div>
42
 
</div></section><section id="paste-special"><div class="inner">
43
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Paste Special</span></h2></div>
44
 
<div class="region">
45
 
<div class="contents pagewide">
46
 
<p class="p">If you have used other applications, such as text editors or word processors
47
 
  with a Paste Special dialog, you may be familiar with this feature.</p>
48
 
<p class="p">To activate the Paste Special dialog in GHex:</p>
49
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
50
 
<li class="list"><p class="p">Click <span class="gui">Paste Special</span> from the <span class="gui">Edit</span> submenu of the <span class="gui">Main menu</span>; or</p></li>
51
 
<li class="list"><p class="p">Press <span class="keyseq"><span class="key"><kbd>Shift</kbd></span>+<span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>V</kbd></span></span>.</p></li>
52
 
</ul></div></div></div>
53
 
<p class="p">The options that appear when <span class="gui">Paste Special</span> is activated are context-dependent.</p>
54
 
<p class="p">The most common options are described below.</p>
55
 
</div>
56
 
<section id=""><div class="inner">
57
 
<div class="hgroup pagewide"><h3 class="title"><span class="title">GHex Paste Data</span></h3></div>
58
 
<div class="region"><div class="contents pagewide"><p class="p">This option will only appear if your current clipboard selection contains data
59
 
   copied directly from GHex. This represents clipboard data native to GHex, and
60
 
   will be pasted into the application as if you had utilized an ordinary
61
 
   <span class="gui">Paste</span> operation.</p></div></div>
62
 
</div></section><section id=""><div class="inner">
63
 
<div class="hgroup pagewide"><h3 class="title"><span class="title">Plain text (as ASCII)</span></h3></div>
64
 
<div class="region"><div class="contents pagewide"><p class="p">This allows you to paste the data from the clipboard into the GHex buffer,
65
 
   forcing GHex to assume the pasted data will be plain ASCII text.</p></div></div>
66
 
</div></section><section id=""><div class="inner">
67
 
<div class="hgroup pagewide"><h3 class="title"><span class="title">Plain text (Unicode)</span></h3></div>
68
 
<div class="region"><div class="contents pagewide"><p class="p">This allows you to paste the data from the clipboard into the GHex buffer,
69
 
   forcing GHex to assume the pasted data will be text encoded in UTF-8 format.</p></div></div>
70
 
</div></section><section id=""><div class="inner">
71
 
<div class="hgroup pagewide"><h3 class="title"><span class="title">Plain text (as space-delimited hex pairs)</span></h3></div>
72
 
<div class="region"><div class="contents pagewide">
73
 
<p class="p">This unique option assumes that GHex can expect to receive plain, ASCII text
74
 
   that is specifically formatted as hex nibble-pairs, separated by a single space
75
 
   each.</p>
76
 
<p class="p">This allows hexadecimal data to be pasted back into GHex cleanly.</p>
77
 
<p class="p">For example, if <span class="code">48 45 4C 4C 4F</span> is in the clipboard, selecting this
78
 
   option will implicitly convert this hex sequence to an ASCII character sequence
79
 
   (in this case, "HELLO"), and insert it into the GHex buffer.</p>
80
 
<p class="p">This option can be combined with <span class="gui">Copy Special</span> to allow an external text
81
 
   editor of your choice to edit hex data copied from GHex, and paste it back into
82
 
   GHex cleanly.</p>
83
 
</div></div>
84
 
</div></section>
85
 
</div>
86
 
</div></section><section id=""><div class="inner">
87
 
<div class="hgroup pagewide"><h2 class="title"><span class="title">Copy Special</span></h2></div>
88
 
<div class="region"><div class="contents pagewide">
89
 
<p class="p">Unlike Paste Special, which is a feature present in many ordinary text
90
 
  editors and word processors, Copy Special is a feature that was created
91
 
  specifically for GHex, and thus may not be familiar to many users.</p>
92
 
<p class="p">Copy Special allows you to copy data <span class="em">from</span> GHex into the format of your
93
 
  choice. You may not need this feature unless you intend to paste data from GHex
94
 
  into other applications, and would like minute control over how that is done.</p>
95
 
<p class="p">To activate the Copy Special dialog in GHex:</p>
96
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
97
 
<li class="list"><p class="p">Click <span class="gui">Copy Special</span> from the <span class="gui">Edit</span> submenu of the <span class="gui">Main menu</span>; or</p></li>
98
 
<li class="list"><p class="p">Press <span class="keyseq"><span class="key"><kbd>Shift</kbd></span>+<span class="key"><kbd>Ctrl</kbd></span>+<span class="key"><kbd>C</kbd></span></span>.</p></li>
99
 
</ul></div></div></div>
100
 
<p class="p">The options that appear when you activate Copy Special are:</p>
101
 
<div class="list"><div class="inner"><div class="region"><ul class="list">
102
 
<li class="list"><p class="p">GHex Paste Data</p></li>
103
 
<li class="list"><p class="p">Plain text (as ASCII)</p></li>
104
 
<li class="list"><p class="p">Plain text (as space-delimited hex pairs)</p></li>
105
 
<li class="list"><p class="p">Plain text (Unicode)</p></li>
106
 
</ul></div></div></div>
107
 
<p class="p">These options work as described above in the <span class="link"><a href="#paste-special" title="Paste Special">Paste Special</a></span> section
108
 
  above, but in reverse. In other words, the data copied from GHex <span class="em">to</span> the
109
 
  clipboard will be copied in the specified format.</p>
110
 
<p class="p">This allows you to have control over how clipboard data copied from GHex will
111
 
  be pasted <span class="em">into</span> other applications.</p>
112
 
<p class="p">This is mostly intended to allow for space-delimited hex pairs to be edited in
113
 
  third party applications and then pasted back to GHex cleanly. However, there
114
 
  may be other interesting uses for this feature as well. Since GHex, like any
115
 
  hex editor, is often used to edit unusual data types, there may be other times
116
 
  in which it is desirable for the user to have full control over how the data
117
 
  from the buffer is copied to the clipboard.</p>
118
 
</div></div>
119
 
</div></section><section class="links" role="navigation"><div class="inner">
120
 
<div class="hgroup pagewide"></div>
121
 
<div class="contents pagewide"><div class="links guidelinks"><div class="inner">
122
 
<div class="title"><h2><span class="title">更多信息</span></h2></div>
123
 
<div class="region"><ul><li class="links "><a href="index.html#advanced" title="Advanced topics">Advanced topics</a></li></ul></div>
124
 
</div></div></div>
125
 
</div></section>
126
 
</div>
127
 
<div class="clear"></div></article><footer><div class="inner pagewide"><div class="about ui-expander" role="contentinfo">
128
 
<div class="yelp-data yelp-data-ui-expander" data-yelp-expanded="false"></div>
129
 
<div class="inner">
130
 
<div class="hgroup"><h2><span class="title">关于</span></h2></div>
131
 
<div class="region"><div class="contents">
132
 
<div class="copyrights"><div class="copyright">© 2022 Logan Rathbone</div></div>
133
 
<div class="credits">
134
 
<div class="credits-authors">
135
 
<div class="title"><span class="title">编写者</span></div>
136
 
<ul class="credits"><li>Logan Rathbone</li></ul>
137
 
</div>
138
 
<div class="credits-blank"></div>
139
 
<div class="credits-blank"></div>
140
 
</div>
141
 
</div></div>
142
 
</div>
143
 
</div></div></footer>
144
 
</div></main></body>
145
 
</html>