
メール質疑回答が3秒で終わる「引用符追加ツール」を無料配布します

はじめまして。「ゆうき建築AI活用」です。
一級建築士・一級建築施工管理技士として、鉄骨・木造の設計、施工管理、積算の実務を経験してきました。現在は建築×AI活用の実践者として、日々の業務効率化に取り組んでいます。
結論:引用符を一括追加するツールを作りました
メールで質疑回答をするとき、相手の文章に「>>」を付けて引用したり、文章を箇条書きにするために「・」を全行に追加したり……こういう単純作業、地味に面倒ですよね。
そこで、テキストの各行に好きな記号を一括で追加できるツールを作りました。
HTMLファイル1つで動くので、コピペして保存すればブラウザでそのまま使えます。無料です。
なんて、値打ちこいてますけど、普通に無料レベルの内容です。
こんな場面で使えます
メール質疑回答書の作成:相手の質問に「>>」を付けて引用
箇条書き化:文章を「・」付きリストに一括変換
資料の整形:引用符や記号を全行に一気に追加
「追加する文字列」の欄に好きな記号(>>, ・, ※ など)を入れれば、どんな記号でも対応できます。
使い方
下記のHTMLコードをコピー
テキストエディタに貼り付けて「tool.html」などで保存
ブラウザで開く
左側にテキストを貼り付け、変換ボタンをクリック
右側に結果が表示されるので、コピーして使う
たったこれだけです。
コード全文
<!DOCTYPE html>
<html lang="ja">
<head>
<style>
.preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #fff;
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
z-index: 9999;
animation: fadeOut 0.1s 0.3s forwards;
}
.glasses {
display: flex;
align-items: center;
animation: swing 0.3s ease-in-out infinite alternate;
transform-origin: top center;
}
.lens {
width: 40px;
height: 20px;
border: 3px solid #888;
border-radius: 4px;
background: rgba(200,200,200,0.2);
}
.bridge {
width: 12px;
height: 3px;
background: #888;
}
.temple {
width: 20px;
height: 3px;
background: #888;
}
.pencil {
font-size: 48px;
animation: swing 0.3s ease-in-out infinite alternate;
animation-delay: 0.15s;
transform-origin: top center;
display: inline-block;
}
@keyframes swing {
0% { transform: rotate(-15deg); }
100% { transform: rotate(15deg); }
}
@keyframes fadeOut {
to { opacity: 0; visibility: hidden; }
}
</style>
<div class="preloader">
<div class="glasses">
<div class="temple"></div>
<div class="lens"></div>
<div class="bridge"></div>
<div class="lens"></div>
<div class="temple"></div>
</div>
<span class="pencil">✏️</span>
</div>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>引用符追加ツール</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, sans-serif;
margin: 0;
padding: 20px;
background: #f5f5f5;
height: 100vh;
box-sizing: border-box;
}
.container {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
height: calc(100vh - 40px);
display: flex;
flex-direction: column;
}
.header {
margin-bottom: 15px;
padding-bottom: 15px;
border-bottom: 1px solid #eee;
}
h1 {
color: #333;
font-size: 20px;
margin: 0 0 8px 0;
}
.description {
color: #666;
margin: 0;
font-size: 13px;
}
.prefix-input {
display: flex;
gap: 10px;
margin-bottom: 15px;
align-items: center;
}
.prefix-input label {
font-size: 14px;
color: #555;
}
.prefix-input input[type="text"] {
padding: 6px;
border: 2px solid #ddd;
border-radius: 5px;
font-family: monospace;
width: 80px;
}
.main-content {
flex: 1;
display: flex;
gap: 15px;
min-height: 0;
}
.panel {
flex: 1;
display: flex;
flex-direction: column;
}
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.panel-title {
font-size: 14px;
font-weight: bold;
color: #555;
}
.panel-buttons {
display: flex;
gap: 8px;
}
textarea {
flex: 1;
width: 100%;
box-sizing: border-box;
padding: 12px;
border: 2px solid #ddd;
border-radius: 5px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 14px;
resize: none;
min-height: 0;
}
textarea:focus {
outline: none;
border-color: #4CAF50;
}
textarea[readonly] {
background: #f9f9f9;
}
button {
padding: 8px 16px;
font-size: 13px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: all 0.3s;
white-space: nowrap;
}
.btn-primary {
background: #4CAF50;
color: white;
}
.btn-primary:hover {
background: #45a049;
}
.btn-secondary {
background: #2196F3;
color: white;
}
.btn-secondary:hover {
background: #1976D2;
}
.btn-clear {
background: #f44336;
color: white;
}
.btn-clear:hover {
background: #da190b;
}
.arrow-button {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
background: #4CAF50;
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
z-index: 10;
}
.arrow-button:hover {
background: #45a049;
transform: translate(-50%, -50%) scale(1.1);
}
.divider {
width: 1px;
background: #ddd;
position: relative;
}
.status {
position: fixed;
top: 20px;
right: 20px;
padding: 10px 20px;
border-radius: 5px;
z-index: 1000;
display: none;
animation: slideIn 0.3s ease;
}
.status.success {
background: #4CAF50;
color: white;
box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>🔖 引用符追加ツール</h1>
<p class="description">左側にテキストを貼り付けて、中央の変換ボタンをクリックすると右側に結果が表示されます</p>
</div>
<div class="prefix-input">
<label>追加する文字列:</label>
<input type="text" id="prefixText" value=">>" placeholder="例: >>">
<label style="margin-left: 20px;">
<input type="checkbox" id="addSpace" checked>
末尾にスペースを追加
</label>
</div>
<div class="main-content">
<div class="panel">
<div class="panel-header">
<span class="panel-title">📝 入力テキスト</span>
<div class="panel-buttons">
<button class="btn-secondary" onclick="pasteFromClipboard()">
📋 貼り付け
</button>
<button class="btn-clear" onclick="clearInput()">
クリア
</button>
</div>
</div>
<textarea id="inputText" placeholder="ここにテキストを貼り付けてください..."></textarea>
</div>
<div class="divider">
<button class="arrow-button" onclick="addQuote()" title="変換 (Ctrl+Enter)">
→
</button>
</div>
<div class="panel">
<div class="panel-header">
<span class="panel-title">✅ 変換結果</span>
<div class="panel-buttons">
<button class="btn-primary" onclick="copyToClipboard()">
📋 コピー
</button>
<button class="btn-clear" onclick="clearOutput()">
クリア
</button>
</div>
</div>
<textarea id="outputText" placeholder="変換結果がここに表示されます..." readonly></textarea>
</div>
</div>
</div>
<div id="status" class="status"></div>
<script>
// ページ読み込み時に入力欄にフォーカス
window.onload = function() {
document.getElementById('inputText').focus();
};
function addQuote() {
const inputText = document.getElementById('inputText').value;
const prefixText = document.getElementById('prefixText').value || '>>';
const addSpace = document.getElementById('addSpace').checked;
if (!inputText.trim()) {
showStatus('テキストを入力してください', false);
return;
}
const prefix = addSpace ? prefixText + ' ' : prefixText;
const lines = inputText.split('\n');
const quotedLines = lines.map(line => prefix + line);
const outputText = quotedLines.join('\n');
document.getElementById('outputText').value = outputText;
showStatus('変換完了!', true);
}
async function pasteFromClipboard() {
try {
const text = await navigator.clipboard.readText();
document.getElementById('inputText').value = text;
showStatus('貼り付け完了!', true);
addQuote(); // 自動的に変換も実行
} catch (err) {
showStatus('クリップボードへのアクセスが拒否されました', false);
}
}
async function copyToClipboard() {
const outputText = document.getElementById('outputText').value;
if (!outputText) {
showStatus('コピーする内容がありません', false);
return;
}
try {
await navigator.clipboard.writeText(outputText);
showStatus('コピー完了!', true);
} catch (err) {
// フォールバック: 古いブラウザ用
const textArea = document.createElement('textarea');
textArea.value = outputText;
document.body.appendChild(textArea);
textArea.select();
document.execCommand('copy');
document.body.removeChild(textArea);
showStatus('コピー完了!', true);
}
}
function clearInput() {
document.getElementById('inputText').value = '';
document.getElementById('inputText').focus();
}
function clearOutput() {
document.getElementById('outputText').value = '';
}
function showStatus(message, isSuccess) {
const status = document.getElementById('status');
status.textContent = message;
status.className = 'status ' + (isSuccess ? 'success' : 'error');
status.style.display = 'block';
setTimeout(() => {
status.style.display = 'none';
}, 2000);
}
// Ctrl+Enter で変換実行
document.getElementById('inputText').addEventListener('keydown', function(e) {
if (e.ctrlKey && e.key === 'Enter') {
addQuote();
}
});
// 出力エリアでCtrl+A → 全選択を簡単に
document.getElementById('outputText').addEventListener('focus', function() {
this.select();
});
</script>
</body>
</html>まとめ
地味だけど、実務で毎日使える実用ツールです。
メール質疑回答や資料の整形で「ちょっと面倒だな」と思ったとき、ぜひ使ってみてください。