<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>program-shoshinsya</author_name>
  <author_url>https://blog.hatena.ne.jp/program-shoshinsya/</author_url>
  <blog_title>auの日記</blog_title>
  <blog_url>https://program-shoshinsya.hatenablog.com/</blog_url>
  <categories>
    <anon>PDF</anon>
  </categories>
  <description>auです。日本語のPDFをコピペすると、改行の部分が半角スペースになっていることが判明しました。自分で解決するためのアプリか何かを作ろうと思った矢先に、解決できるサイトを見つけたので共有してみようと思います。black-flag.net単純に半角スペースを削除するだけだと、英語の場合壊れてしまうのですが、そんなことはありませんでした。実際にどのように処理をしているのか覗いてみたら以下のような感じでした。 setText = selfVal.replace(/([^\w.]) +([^\w.])/g, '$1$2'); セットされた値に対して、a-z, A-z, 0-9以外が1回以上とa-z, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fprogram-shoshinsya.hatenablog.com%2Fentry%2F2021%2F01%2F19%2F233428&quot; title=&quot;日本語のPDFをコピペすると改行が半角スペースになる問題 - auの日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-01-19 23:34:28</published>
  <title>日本語のPDFをコピペすると改行が半角スペースになる問題</title>
  <type>rich</type>
  <url>https://program-shoshinsya.hatenablog.com/entry/2021/01/19/233428</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
